1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/pptpd/Dockerfile

20 lines
341 B
Docker
Raw Normal View History

2015-06-27 10:32:24 +00:00
#
# Dockerfile for pptpd
#
2015-06-28 09:14:56 +00:00
FROM alpine
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2015-06-27 10:32:24 +00:00
2016-06-28 09:28:49 +00:00
RUN apk add --no-cache iptables ppp pptpd
2015-06-27 10:32:24 +00:00
2015-06-28 03:42:35 +00:00
COPY pptpd.conf /etc/
COPY chap-secrets /etc/ppp/
2015-06-28 03:12:07 +00:00
COPY pptpd-options /etc/ppp/
2015-06-27 10:32:24 +00:00
2015-06-28 04:36:09 +00:00
EXPOSE 1723
2016-02-23 07:52:04 +00:00
CMD set -xe \
&& iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
2015-06-28 09:14:56 +00:00
&& pptpd \
2015-06-28 19:57:52 +00:00
&& syslogd -n -O /dev/stdout