1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00:00
dockerfiles/pptpd/Dockerfile

21 lines
358 B
Docker
Raw Normal View History

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