blob: 630446bb3d2dc9ba6da81c0df7975f58b432ec1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM alpine:edge
LABEL maintainer="Mike Crute <mike@crute.us>"
RUN set -euxo pipefail; \
apk add --no-cache \
strongswan \
; \
rm /etc/ipsec.conf; \
echo ": RSA vpn.pem" > /etc/ipsec.secrets
ADD crute-root.pem /etc/ipsec.d/cacerts/
ADD vpn-g1.pem /etc/ipsec.d/cacerts/
ADD entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/usr/sbin/ipsec", "start", "--nofork" ]
|