Skip to content

Commit

Permalink
docketfile
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanVolkov committed Oct 12, 2023
1 parent 9dbe9b0 commit 19e493a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ RUN apt-get install -qy openvpn iptables socat curl
ADD ./bin /usr/local/sbin
VOLUME /etc/openvpn
EXPOSE 443/tcp 1194/udp 8080/tcp
CMD ["/bin/sh" "-c" "run"]
CMD run
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
docker buildx build --platform linux/amd64 -t romanvolkov/vpn .
docker push romanvolkov/vpn
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ apt install -y docker
apt install -y docker.io
export DOCKER_DEFAULT_PLATFORM=linux/amd64
CID=$(docker run -d --privileged -p 1194:1194/udp -p 443:443/tcp romanvolkov/vpn)
docker run -t -i -p 8080:8080 --volumes-from $CID romanvolkov/vpn
docker run -t -i -p 8080:8080 --volumes-from $CID romanvolkov/vpn serveconfig
```

0 comments on commit 19e493a

Please sign in to comment.