Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Reaganer authored May 11, 2024
1 parent ce9091b commit 4b0ce4f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
FROM alpine:3.19.1 AS build
ARG VERSION=v4.43-9799
ARG VERSION=v4.43-9799-beta

WORKDIR /root

RUN apk add --no-cache gcc make libc-dev readline-dev openssl-dev ncurses-dev zlib-dev gnu-libiconv wget && \
wget -O vpnserver.tar.gz https://www.softether-download.com/files/softether/v4.43-9799-beta-2023.08.31-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.43-9799-beta-2023.08.31-linux-x64-64bit.tar.gz && \
tar xzf vpnserver.tar.gz && \
cd /root/${VERSION} && \
RUN apk add --no-cache gcc make libc-dev readline-dev openssl-dev ncurses-dev zlib-dev gnu-libiconv git && \
git clone --branch ${VERSION} --depth 1 https://github.com/SoftEtherVPN/SoftEtherVPN_Stable.git && \
cd /root/SoftEtherVPN_Stable && \
./configure && make && \
mv /root/${VERSION}/bin/vpnserver / && \
mv /root/SoftEtherVPN_Stable/bin/vpnserver / && \
echo 127.0.0.1 > /vpnserver/adminip.txt
COPY genconfig /vpnserver/
COPY start.sh /vpnserver/
Expand Down

0 comments on commit 4b0ce4f

Please sign in to comment.