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:
Hector
2022-02-19 14:10:36 +00:00
parent e01d4cfe12
commit 0f0efe58af
3 changed files with 23 additions and 29 deletions

View File

@ -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