From 097376db755f7abc08c60d82233a20ced9551e4e Mon Sep 17 00:00:00 2001 From: Dave Burke Date: Sat, 28 May 2016 21:39:47 -0500 Subject: [PATCH] Set working dir in ovpn_run instead of Dockerfile --- Dockerfile | 1 - bin/ovpn_run | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2cac8e2..49f09f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,6 @@ VOLUME ["/etc/openvpn"] # Internally uses port 1194/udp, remap using `docker run -p 443:1194/tcp` EXPOSE 1194/udp -WORKDIR /etc/openvpn CMD ["ovpn_run"] ADD ./bin /usr/local/bin diff --git a/bin/ovpn_run b/bin/ovpn_run index 920200c..f848780 100755 --- a/bin/ovpn_run +++ b/bin/ovpn_run @@ -10,6 +10,8 @@ fi set -e +cd $OPENVPN + # Build runtime arguments array based on environment ARGS=("--config" "$OPENVPN/openvpn.conf")