Skip to content

Commit

Permalink
Dockerfile use 'tini' init
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Apr 10, 2018
1 parent 9d6d03c commit 2de9a99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER David Personette <[email protected]>
# Install openvpn
RUN apk --no-cache --no-progress upgrade && \
apk --no-cache --no-progress add bash curl ip6tables iptables openvpn \
shadow && \
shadow tini && \
addgroup -S vpn && \
rm -rf /tmp/*

Expand All @@ -15,4 +15,4 @@ HEALTHCHECK --interval=60s --timeout=15s --start-period=120s \

VOLUME ["/vpn"]

ENTRYPOINT ["openvpn.sh"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/openvpn.sh"]
4 changes: 2 additions & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MAINTAINER David Personette <[email protected]>
RUN ["cross-build-start"]
RUN apk --no-cache --no-progress upgrade && \
apk --no-cache --no-progress add bash curl ip6tables iptables openvpn \
shadow && \
shadow tini && \
addgroup -S vpn && \
rm -rf /tmp/*
RUN ["cross-build-end"]
Expand All @@ -17,4 +17,4 @@ HEALTHCHECK --interval=60s --timeout=15s --start-period=120s \

VOLUME ["/vpn"]

ENTRYPOINT ["openvpn.sh"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/openvpn.sh"]
4 changes: 2 additions & 2 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MAINTAINER David Personette <[email protected]>
RUN ["cross-build-start"]
RUN apk --no-cache --no-progress upgrade && \
apk --no-cache --no-progress add bash curl ip6tables iptables openvpn \
shadow && \
shadow tini && \
addgroup -S vpn && \
rm -rf /tmp/*
RUN ["cross-build-end"]
Expand All @@ -17,4 +17,4 @@ HEALTHCHECK --interval=60s --timeout=15s --start-period=120s \

VOLUME ["/vpn"]

ENTRYPOINT ["openvpn.sh"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/openvpn.sh"]

0 comments on commit 2de9a99

Please sign in to comment.