1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/pptpd/Dockerfile
2017-05-08 07:05:07 +08:00

20 lines
341 B
Docker

#
# Dockerfile for pptpd
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
RUN apk add --no-cache iptables ppp pptpd
COPY pptpd.conf /etc/
COPY chap-secrets /etc/ppp/
COPY pptpd-options /etc/ppp/
EXPOSE 1723
CMD set -xe \
&& iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
&& pptpd \
&& syslogd -n -O /dev/stdout