1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:31 +02:00
This commit is contained in:
kev 2015-06-28 10:18:47 +08:00
parent ef01b3fab3
commit 2071535178

View File

@ -2,11 +2,11 @@
# Dockerfile for pptpd
#
FROM alpine
FROM debian:jessie
MAINTAINER kev<noreply@datageek.info>
RUN apk add -U iptables ppp pptpd \
&& rm -rf /var/cache/apk/*
RUN apk add -U iptables pptpd \
&& rm -rf /var/lib/apt/lists/*
COPY pptpd.conf /etc/
COPY chap-secrets /etc/ppp/
@ -15,8 +15,5 @@ COPY options.pptp /etc/ppp/
EXPOSE 1723
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
&& syslogd \
&& pptpd \
&& sleep 1 \
&& tail -f /var/log/messages
&& pptpd --fg