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

Commit 081b0f3

Browse files
authored
Merge pull request #24 from dngray/pr-use-dante-package
Use the dante-server package from the Alpine community package repository
2 parents 8524af6 + 3e03afd commit 081b0f3

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

Dockerfile

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
FROM alpine:3.13 AS build
2-
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-
11-
121
FROM alpine:3.13
132

143
ARG IMAGE_VERSION
@@ -18,21 +7,18 @@ LABEL source="github.com/wfg/docker-openvpn-client"
187
LABEL version="$IMAGE_VERSION"
198
LABEL created="$BUILD_DATE"
209

21-
COPY --from=build /usr/local/sbin/sockd /usr/local/sbin/sockd
22-
2310
ENV KILL_SWITCH=on \
2411
VPN_LOG_LEVEL=3 \
2512
HTTP_PROXY=off \
2613
SOCKS_PROXY=off
2714

2815
RUN apk add --no-cache \
2916
bind-tools \
17+
dante-server \
3018
openvpn \
3119
tinyproxy
3220

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

3723
COPY data/ /data
3824

0 commit comments

Comments
 (0)