File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Original credit: https://github.com/jpetazzo/dockvpn
2
2
3
- # Leaner build then Ubunutu
3
+ # Leaner build then Ubuntu
4
4
FROM alpine:3.2
5
5
6
6
MAINTAINER Kyle Manna <
[email protected] >
7
7
8
- RUN apk update && \
9
- apk add openvpn iptables curl bash && \
8
+ RUN echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
9
+ apk add --update openvpn iptables bash easy-rsa && \
10
+ ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
10
11
rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
11
12
12
- RUN mkdir -p /usr/local/share/easy-rsa && cd /usr/local/share/easy-rsa && \
13
- curl -L https://github.com/OpenVPN/easy-rsa/archive/v3.0.0.tar.gz | tar xzf - easy-rsa-3.0.0/easyrsa3 && \
14
- mv easy-rsa-3.0.0/easyrsa3 . && rmdir easy-rsa-3.0.0 && \
15
- ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin
16
-
17
13
# Needed by scripts
18
14
ENV OPENVPN /etc/openvpn
19
- ENV EASYRSA /usr/local/ share/easy-rsa/easyrsa3
15
+ ENV EASYRSA /usr/share/easy-rsa
20
16
ENV EASYRSA_PKI $OPENVPN/pki
21
17
ENV EASYRSA_VARS_FILE $OPENVPN/vars
22
18
You can’t perform that action at this time.
0 commit comments