1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:07:04 +02:00
dockerfiles/pptpd/Dockerfile

20 lines
326 B
Docker
Raw Normal View History

2015-06-27 12:32:24 +02:00
#
# Dockerfile for pptpd
#
2015-06-28 04:18:47 +02:00
FROM debian:jessie
2015-06-27 12:32:24 +02:00
MAINTAINER kev<noreply@datageek.info>
2015-06-28 04:18:47 +02:00
RUN apk add -U iptables pptpd \
&& rm -rf /var/lib/apt/lists/*
2015-06-27 12:32:24 +02:00
2015-06-27 13:33:27 +02:00
COPY pptpd.conf /etc/
COPY chap-secrets /etc/ppp/
COPY options.pptp /etc/ppp/
2015-06-27 12:32:24 +02:00
EXPOSE 1723
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
2015-06-28 04:18:47 +02:00
&& pptpd --fg
2015-06-27 12:32:24 +02:00