You've already forked prometheus-fail2ban-exporter
feat: correctly handle shutdown signals
Add a new method to the application startup to listen for OS shutdown signals and handle them appropriately. A shutdown signal will cause the app to exit immediately. Use correct syntax for the `ENTRYPOINT` field in the Dockerfile to ensure that OS signals get passed down to the running application.
This commit is contained in:
@ -20,4 +20,4 @@ WORKDIR /app
|
||||
# Copy compiled binary to release image
|
||||
COPY --from=build /build/src/exporter /app/fail2ban-prometheus-exporter
|
||||
|
||||
ENTRYPOINT /app/fail2ban-prometheus-exporter
|
||||
ENTRYPOINT ["/app/fail2ban-prometheus-exporter"]
|
||||
|
Reference in New Issue
Block a user