Skip to content

Commit

Permalink
dockerfile: Reduce ENV lines to single layer
Browse files Browse the repository at this point in the history
* Results in a slightly simpler docker image.
  • Loading branch information
kylemanna committed Oct 26, 2020
1 parent dfd1708 commit 5634287
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/reposi
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*

# Needed by scripts
ENV OPENVPN /etc/openvpn
ENV EASYRSA /usr/share/easy-rsa
ENV EASYRSA_PKI $OPENVPN/pki
ENV EASYRSA_VARS_FILE $OPENVPN/vars

# Prevents refused client connection because of an expired CRL
ENV EASYRSA_CRL_DAYS 3650
ENV OPENVPN=/etc/openvpn
ENV EASYRSA=/usr/share/easy-rsa \
EASYRSA_CRL_DAYS=3650 \
EASYRSA_PKI=$OPENVPN/etc/pki \
EASYRSA_VARS_FILE=$OPENVPN/vars

VOLUME ["/etc/openvpn"]

Expand Down

0 comments on commit 5634287

Please sign in to comment.