-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from s-diez/from-scratch-image
Feat: use scratch base for docker image
- Loading branch information
Showing
2 changed files
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
FROM debian:stable-slim | ||
FROM scratch | ||
|
||
# nobody / nogroup | ||
ARG DNSBL_USER=65534 | ||
ARG DNSBL_GROUP=65534 | ||
|
||
ENV DNSBL_EXP_RESOLVER=ubound:53 | ||
ENV DNSBL_EXP_RBLS=/etc/dnsbl-exporter/rbls.ini | ||
ENV DNSBL_EXP_TARGETS=/etc/dnsbl-exporter/targets.ini | ||
|
||
COPY dnsbl-exporter /usr/bin/ | ||
USER $DNSBL_USER:$DNSBL_GROUP | ||
|
||
RUN mkdir -p /etc/dnsbl-exporter | ||
COPY rbls.ini /etc/dnsbl-exporter/ | ||
COPY targets.ini /etc/dnsbl-exporter/ | ||
ENV DNSBL_EXP_RESOLVER=ubound:53 | ||
ENV DNSBL_EXP_RBLS=/rbls.ini | ||
ENV DNSBL_EXP_TARGETS=/targets.ini | ||
|
||
RUN chown -R $DNSBL_USER:$DNSBL_GROUP /etc/dnsbl-exporter | ||
USER $DNSBL_USER:$DNSBL_GROUP | ||
COPY dnsbl-exporter rbls.ini targets.ini / | ||
|
||
EXPOSE 9211 | ||
|
||
ENTRYPOINT ["/usr/bin/dnsbl-exporter"] | ||
ENTRYPOINT ["/dnsbl-exporter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters