forked from DeltaAngle/pia-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
28 lines (24 loc) · 853 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM alpine:latest
MAINTAINER conlon
RUN apk -U upgrade && \
apk add --no-cache openvpn curl bash && \
#
#AES256 encryption profiles
curl -o /openvpn-strong.zip https://www.privateinternetaccess.com/openvpn/openvpn-strong.zip && \
mkdir /etc/openvpn/pia-strong && \
unzip -d /etc/openvpn/pia-strong/ /openvpn-strong.zip && \
#AES128 encryption profiles
curl -o /openvpn.zip https://www.privateinternetaccess.com/openvpn/openvpn.zip && \
mkdir /etc/openvpn/pia-standard && \
unzip -d /etc/openvpn/pia-standard/ /openvpn.zip && \
#
# cleanup temporary files
# rm -rf /tmp && \
rm /openvpn.zip && \
rm /openvpn-strong.zip && \
rm -rf /var/cache/apk/*
COPY openvpn.sh /usr/local/bin/openvpn.sh
WORKDIR /etc/openvpn
ENV REGION="us_texas"
ENTRYPOINT ["openvpn.sh"]
#ENTRYPOINT ["/bin/bash"]