mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
# Dockerfile for pptpd
|
# Dockerfile for pptpd
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM alpine
|
FROM debian:jessie
|
||||||
MAINTAINER kev<noreply@datageek.info>
|
MAINTAINER kev<noreply@datageek.info>
|
||||||
|
|
||||||
RUN apk add -U iptables ppp pptpd \
|
RUN apk add -U iptables pptpd \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY pptpd.conf /etc/
|
COPY pptpd.conf /etc/
|
||||||
COPY chap-secrets /etc/ppp/
|
COPY chap-secrets /etc/ppp/
|
||||||
@@ -15,8 +15,5 @@ COPY options.pptp /etc/ppp/
|
|||||||
EXPOSE 1723
|
EXPOSE 1723
|
||||||
|
|
||||||
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
||||||
&& syslogd \
|
&& pptpd --fg
|
||||||
&& pptpd \
|
|
||||||
&& sleep 1 \
|
|
||||||
&& tail -f /var/log/messages
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user