Skip to content

Commit 23f6609

Browse files
committed
alpine: Use easy-rsa in testing branch of alpine
* Simplifes the Dockerfile significantly. * No need for curl.
1 parent 3da0efa commit 23f6609

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Dockerfile

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
# Original credit: https://github.com/jpetazzo/dockvpn
22

3-
# Leaner build then Ubunutu
3+
# Leaner build then Ubuntu
44
FROM alpine:3.2
55

66
MAINTAINER Kyle Manna <[email protected]>
77

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 && \
1011
rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
1112

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-
1713
# Needed by scripts
1814
ENV OPENVPN /etc/openvpn
19-
ENV EASYRSA /usr/local/share/easy-rsa/easyrsa3
15+
ENV EASYRSA /usr/share/easy-rsa
2016
ENV EASYRSA_PKI $OPENVPN/pki
2117
ENV EASYRSA_VARS_FILE $OPENVPN/vars
2218

0 commit comments

Comments
 (0)