Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 9f42bb8

Browse files
committed
Use the dante-server package
1 parent 8524af6 commit 9f42bb8

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

Dockerfile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
FROM alpine:3.13 AS build
22

3-
ARG DANTE_VERSION=1.4.2
4-
5-
RUN apk add --no-cache build-base
6-
RUN wget https://www.inet.no/dante/files/dante-$DANTE_VERSION.tar.gz --output-document - | tar -xz \
7-
&& cd dante-$DANTE_VERSION \
8-
&& ac_cv_func_sched_setscheduler=no ./configure --disable-client \
9-
&& make install
10-
3+
RUN echo "https://dl-cdn.alpinelinux.org/alpine/v3.13/community" >> /etc/apk/repositories
114

125
FROM alpine:3.13
136

@@ -18,8 +11,6 @@ LABEL source="github.com/wfg/docker-openvpn-client"
1811
LABEL version="$IMAGE_VERSION"
1912
LABEL created="$BUILD_DATE"
2013

21-
COPY --from=build /usr/local/sbin/sockd /usr/local/sbin/sockd
22-
2314
ENV KILL_SWITCH=on \
2415
VPN_LOG_LEVEL=3 \
2516
HTTP_PROXY=off \
@@ -28,11 +19,10 @@ ENV KILL_SWITCH=on \
2819
RUN apk add --no-cache \
2920
bind-tools \
3021
openvpn \
31-
tinyproxy
22+
tinyproxy \
23+
dante-server
3224

33-
RUN mkdir -p /data/vpn \
34-
&& addgroup -S socks \
35-
&& adduser -S -D -G socks -g "socks" -H -h /dev/null socks
25+
RUN mkdir -p /data/vpn
3626

3727
COPY data/ /data
3828

0 commit comments

Comments
 (0)