You've already forked prometheus-fail2ban-exporter
feat: remove startup script from docker image
Update the docker image to remove the `run.sh` script and instead run the exporter directly. This keeps the docker image as simple as possible. Update README file with extra info on how to collect textfile metrics in a docker container. BREAKING CHANGE: Using the textfile collector in docker now requires setting environment variables.
This commit is contained in:
@ -20,7 +20,4 @@ WORKDIR /app
|
||||
# Copy compiled binary to release image
|
||||
COPY --from=build /build/src/exporter /app/fail2ban-prometheus-exporter
|
||||
|
||||
# Copy init script into main app folder and set as entry point
|
||||
COPY docker/run.sh /app/
|
||||
RUN chmod +x /app/*
|
||||
ENTRYPOINT /app/run.sh
|
||||
ENTRYPOINT /app/fail2ban-prometheus-exporter
|
||||
|
Reference in New Issue
Block a user