Dockerfile 504 B

1234567891011121314151617181920
  1. # Dockerfile for L2TP/IPSec VPN Server based alpine
  2. # Copyright (C) 2018 - 2019 Teddysun <[email protected]>
  3. FROM alpine:edge
  4. LABEL maintainer="Teddysun <[email protected]>"
  5. RUN apk add --no-cache ca-certificates bash openssl libreswan xl2tpd \
  6. && ipsec initnss \
  7. && rm -rf /var/cache/apk/*
  8. COPY ipsec /etc/init.d/ipsec
  9. COPY l2tp.sh /usr/bin/l2tp
  10. COPY l2tpctl.sh /usr/bin/l2tpctl
  11. RUN chmod 755 /etc/init.d/ipsec /usr/bin/l2tp /usr/bin/l2tpctl
  12. VOLUME /lib/modules
  13. EXPOSE 500/udp 4500/udp
  14. CMD [ "l2tp" ]