2023-07-07 12:04:07 +00:00
|
|
|
FROM docker.io/library/golang:1.20.5-buster AS build
|
2021-03-27 17:29:28 +00:00
|
|
|
|
2023-07-07 12:04:07 +00:00
|
|
|
WORKDIR /workspace
|
|
|
|
ADD . /workspace
|
2021-02-07 13:04:24 +00:00
|
|
|
|
2023-07-07 12:04:07 +00:00
|
|
|
RUN apt update --yes && \
|
|
|
|
apt install --yes build-essential && \
|
|
|
|
make install \
|
|
|
|
PREFIX=/usr \
|
|
|
|
DESTDIR=/app \
|
2023-07-09 10:57:07 +00:00
|
|
|
EXECUTABLE=prometheus-fail2ban-exporter
|
2021-02-07 13:04:24 +00:00
|
|
|
|
2023-07-07 12:04:07 +00:00
|
|
|
FROM docker.io/library/debian:10-slim
|
|
|
|
|
|
|
|
COPY --from=build /app /
|
|
|
|
|
|
|
|
EXPOSE 9191
|
|
|
|
|
2023-07-09 10:57:07 +00:00
|
|
|
ENTRYPOINT [ "/usr/bin/prometheus-fail2ban-exporter" ]
|