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

update pptpd

This commit is contained in:
kev 2016-02-23 15:52:04 +08:00
parent b63e81c97e
commit 09f15d569e

View File

@ -5,8 +5,10 @@
FROM alpine
MAINTAINER kev<noreply@datageek.info>
RUN apk update \
&& apk add iptables ppp pptpd \
RUN set -xe \
&& apk add -U iptables \
ppp \
pptpd \
&& rm -rf /var/cache/apk/*
COPY pptpd.conf /etc/
@ -15,6 +17,7 @@ COPY pptpd-options /etc/ppp/
EXPOSE 1723
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
CMD set -xe \
&& iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
&& pptpd \
&& syslogd -n -O /dev/stdout