Skip to content

Commit 5634287

Browse files
committed
dockerfile: Reduce ENV lines to single layer
* Results in a slightly simpler docker image.
1 parent dfd1708 commit 5634287

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Dockerfile

+5-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/reposi
1212
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
1313

1414
# Needed by scripts
15-
ENV OPENVPN /etc/openvpn
16-
ENV EASYRSA /usr/share/easy-rsa
17-
ENV EASYRSA_PKI $OPENVPN/pki
18-
ENV EASYRSA_VARS_FILE $OPENVPN/vars
19-
20-
# Prevents refused client connection because of an expired CRL
21-
ENV EASYRSA_CRL_DAYS 3650
15+
ENV OPENVPN=/etc/openvpn
16+
ENV EASYRSA=/usr/share/easy-rsa \
17+
EASYRSA_CRL_DAYS=3650 \
18+
EASYRSA_PKI=$OPENVPN/etc/pki \
19+
EASYRSA_VARS_FILE=$OPENVPN/vars
2220

2321
VOLUME ["/etc/openvpn"]
2422

0 commit comments

Comments
 (0)