prometheus-fail2ban-exporter/Dockerfile
CSRBot 9201ed2150
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
chore(deps): update docker.io/library/debian docker tag to v12
2023-10-11 08:38:37 +02:00

20 lines
400 B
Docker

FROM docker.io/library/golang:1.20.5-buster AS build
WORKDIR /workspace
ADD . /workspace
RUN apt update --yes && \
apt install --yes build-essential && \
make install \
PREFIX=/usr \
DESTDIR=/app \
EXECUTABLE=prometheus-fail2ban-exporter
FROM docker.io/library/debian:12-slim
COPY --from=build /app /
EXPOSE 9191
ENTRYPOINT [ "/usr/bin/prometheus-fail2ban-exporter" ]