-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (28 loc) · 754 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (28 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# syntax=docker/dockerfile:1.12-labs
ARG DEBIAN_VERSION
FROM debian:${DEBIAN_VERSION}-slim
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
RUN apt-get update; \
apt-get install -y --no-install-recommends --no-install-suggests \
ca-certificates \
wireguard-tools \
netcat-openbsd \
microsocks \
iproute2 \
iptables \
oathtool \
redsocks \
dnsmasq \
procps \
curl \
gosu \
vpnc; \
useradd --gid nogroup --no-create-home --shell="/usr/sbin/nologin" microsocks; \
rm -rfv \
/var/lib/apt/lists/* \
/var/log/* \
/var/tmp/* \
/tmp/*
COPY init.sh /usr/local/bin/
EXPOSE 53/udp 1080/tcp 1180/tcp
CMD ["init.sh"]