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")