2023-10-02 10:50:34 +00:00
|
|
|
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
|
|
|
|
|
2023-10-07 03:53:29 +00:00
|
|
|
FROM docker.io/library/debian:12-slim
|
2023-10-02 10:50:34 +00:00
|
|
|
|
|
|
|
COPY --from=build /app /
|
|
|
|
|
|
|
|
EXPOSE 9191
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/prometheus-fail2ban-exporter" ]
|