-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (18 loc) · 798 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM debian:buster-slim
MAINTAINER Adriel Kloppenburg
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -qy --no-install-recommends --no-install-suggests install curl gnupg2 \
&& echo "deb http://www.vanbest.org/reprepro/ unstable main contrib non-free" >> /etc/apt/sources.list \
&& curl http://www.vanbest.org/janpascal/debian-archive-key.asc | apt-key add - \
&& apt-get update \
&& apt-get -qy --no-install-recommends --no-install-suggests install denyhosts-server \
&& apt-get -qy purge gnupg2 \
&& rm -rf /var/lib/apt/lists/*
RUN ln -sf /dev/stdout /var/log/denyhosts-server/denyhosts-server.log
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost:9911/ || exit 1
COPY run.sh /run.sh
RUN chmod +x /run.sh
EXPOSE 9911
ENTRYPOINT ["/run.sh"]