across/docker/l2tp/alpine/Dockerfile
Teddysun 2f2d75289a
Added L2TP/IPsec VPN Server docker image based alpine
Signed-off-by: Teddysun <i@teddysun.com>
2018-11-07 21:15:52 +09:00

20 lines
478 B
Docker

# Dockerfile for L2TP/IPSec VPN Server based alpine
# Copyright (C) 2018 Teddysun <i@teddysun.com>
FROM alpine:latest
LABEL maintainer="Teddysun <i@teddysun.com>"
RUN apk add -U openssl libreswan xl2tpd ppp-l2tp \
&& ipsec initnss \
&& rm -rf /var/cache/apk/*
COPY ipsec /etc/init.d/ipsec
COPY l2tp.sh /usr/bin/l2tp
COPY l2tpctl.sh /usr/bin/l2tpctl
RUN chmod 755 /etc/init.d/ipsec /usr/bin/l2tp /usr/bin/l2tpctl
VOLUME /lib/modules
EXPOSE 500/udp 4500/udp
CMD [ "l2tp" ]