-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·37 lines (28 loc) · 1.15 KB
/
Dockerfile
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
33
34
35
36
37
FROM alpine:3.15
LABEL org.shadowsocks-privoxy.image.authors="hiwanz <[email protected]>"
#------------------------------------------------------------------------------
# Environment setup:
#------------------------------------------------------------------------------
RUN apk update && apk upgrade && \
apk --no-cache add \
git \
py3-pip \
privoxy
RUN pip3 install git+https://github.com/shadowsocks/shadowsocks.git@master
#------------------------------------------------------------------------------
# Environment variables:
#------------------------------------------------------------------------------
ENV SERVER_ADDR= \
SERVER_PORT=8899 \
METHOD=aes-256-cfb \
TIMEOUT=300 \
PASSWORD=
#------------------------------------------------------------------------------
# Populate root file system:
#------------------------------------------------------------------------------
ADD rootfs /
#------------------------------------------------------------------------------
# Expose ports and entrypoint:
#------------------------------------------------------------------------------
EXPOSE 8118 7070
ENTRYPOINT ["/entrypoint.sh"]