forked from dperson/openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Personette
committed
Feb 25, 2018
1 parent
2f536f7
commit 9d6d03c
Showing
1 changed file
with
20 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM resin/aarch64-alpine | ||
MAINTAINER David Personette <[email protected]> | ||
|
||
# Install openvpn | ||
RUN ["cross-build-start"] | ||
RUN apk --no-cache --no-progress upgrade && \ | ||
apk --no-cache --no-progress add bash curl ip6tables iptables openvpn \ | ||
shadow && \ | ||
addgroup -S vpn && \ | ||
rm -rf /tmp/* | ||
RUN ["cross-build-end"] | ||
|
||
COPY openvpn.sh /usr/bin/ | ||
|
||
HEALTHCHECK --interval=60s --timeout=15s --start-period=120s \ | ||
CMD curl -L 'https://api.ipify.org' | ||
|
||
VOLUME ["/vpn"] | ||
|
||
ENTRYPOINT ["openvpn.sh"] |