Set working dir in ovpn_run instead of Dockerfile
This commit is contained in:
parent
caffc0b715
commit
097376db75
@ -22,7 +22,6 @@ VOLUME ["/etc/openvpn"]
|
|||||||
# Internally uses port 1194/udp, remap using `docker run -p 443:1194/tcp`
|
# Internally uses port 1194/udp, remap using `docker run -p 443:1194/tcp`
|
||||||
EXPOSE 1194/udp
|
EXPOSE 1194/udp
|
||||||
|
|
||||||
WORKDIR /etc/openvpn
|
|
||||||
CMD ["ovpn_run"]
|
CMD ["ovpn_run"]
|
||||||
|
|
||||||
ADD ./bin /usr/local/bin
|
ADD ./bin /usr/local/bin
|
||||||
|
@ -10,6 +10,8 @@ fi
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
cd $OPENVPN
|
||||||
|
|
||||||
# Build runtime arguments array based on environment
|
# Build runtime arguments array based on environment
|
||||||
ARGS=("--config" "$OPENVPN/openvpn.conf")
|
ARGS=("--config" "$OPENVPN/openvpn.conf")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user