forked from hel1o-wor1d/docker-wstunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (26 loc) · 1.38 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Shanghai
EXPOSE 10080
RUN printf "\
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse\n\
#deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse\n\
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse\n\
#deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse\n\
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse\n\
#deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse\n\
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse\n\
#deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse\n\
deb http://archive.canonical.com/ubuntu focal partner\n\
#deb-src http://archive.canonical.com/ubuntu focal partner\n\
" > /etc/apt/sources.list
RUN apt update
RUN apt install bash netcat nginx supervisor -y
ADD https://github.com/erebe/wstunnel/releases/download/v4.0/wstunnel-x64-linux /usr/local/bin/wstunnel
RUN chmod +x /usr/local/bin/wstunnel
RUN echo "root:root!" | chpasswd
ADD ./start.sh /usr/local/bin/start.sh
ADD ./mync.sh /usr/local/bin/mync.sh
RUN chmod +x /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/mync.sh
ENTRYPOINT ["/usr/local/bin/start.sh"]