You've already forked prometheus-fail2ban-exporter
build: add project dockerfile (#2)
Add a project Dockerfile to allow deploying the application in a docker container. Add a `run.sh` script to start the application in the container. Add Makefile commands to build the docker image based on the Dockerfile. Fix possible nil reference error in the `db` package.
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
# Using golang:latest instead of alpine because of issues with sqlite3
|
||||
FROM golang:latest
|
||||
|
||||
WORKDIR /app
|
||||
COPY dist/fail2ban-prometheus-exporter_linux_amd64/fail2ban-prometheus-exporter /app
|
||||
COPY docker/run.sh /app
|
||||
|
||||
RUN chmod +x /app/*
|
||||
|
||||
ENTRYPOINT /app/run.sh
|
Reference in New Issue
Block a user