1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:32 +02:00
dockerfiles/pptpd/Dockerfile
2016-02-23 15:52:04 +08:00

24 lines
425 B
Docker

#
# Dockerfile for pptpd
#
FROM alpine
MAINTAINER kev<noreply@datageek.info>
RUN set -xe \
&& apk add -U iptables \
ppp \
pptpd \
&& rm -rf /var/cache/apk/*
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