-
Notifications
You must be signed in to change notification settings - Fork 2
/
dockerfile
35 lines (26 loc) · 718 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
27
28
29
30
31
32
33
34
35
FROM docker.io/bitnami/minideb:bullseye
LABEL org.opencontainers.image.source https://github.com/Aeron/ikev2-strongswan-vpn
LABEL org.opencontainers.image.licenses MIT
RUN install_packages \
libstrongswan-standard-plugins \
strongswan \
strongswan-swanctl \
charon-systemd \
iptables \
procps \
ca-certificates \
openssl \
gettext-base
COPY etc/swanctl.conf /etc/swanctl/swanctl.conf
COPY etc/strongswan.conf /etc/strongswan.conf
COPY etc/*.rules /etc/
COPY profile-*.xml /
COPY entrypoint.sh .
RUN echo "" > /etc/ipsec.secrets
VOLUME /etc
VOLUME /var/run
EXPOSE 500/udp 4500/udp
ENV LOGGING_MODE ''
ENV IPSEC_AUTO_MIGRATE 1
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "start" ]