From 09f15d569e19e352571a217dd9d92b3f9bbc798f Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 23 Feb 2016 15:52:04 +0800 Subject: [PATCH] update pptpd --- pptpd/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pptpd/Dockerfile b/pptpd/Dockerfile index 8b484a4..6b6fea1 100644 --- a/pptpd/Dockerfile +++ b/pptpd/Dockerfile @@ -5,8 +5,10 @@ FROM alpine MAINTAINER kev -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