Skip to content

Commit

Permalink
Logging to volume instead of the container
Browse files Browse the repository at this point in the history
  • Loading branch information
maltalex committed Feb 23, 2018
1 parent 0536926 commit 44e6021
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ RUN wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/archive/v${BUILD_VE
&& apt-get -y autoremove && rm -rf /var/lib/apt/lists/*

COPY copyables /

RUN chmod +x /entrypoint.sh /gencert.sh \
&& rm -rf /opt && ln -s /usr/vpnserver /opt \
&& find /usr/bin/vpn* -type f ! -name vpnserver \
-exec bash -c 'ln -s {} /opt/$(basename {})' \;

WORKDIR /usr/vpnserver/

VOLUME ["/usr/vpnserver/server_log/"]

ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 500/udp 4500/udp 1701/tcp 1194/udp 5555/tcp
Expand Down

0 comments on commit 44e6021

Please sign in to comment.