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

20 lines
362 B
Docker
Raw Normal View History

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