Spaces:
Paused
Paused
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:latest
|
| 2 |
+
|
| 3 |
+
RUN apt update -y && apt install -y git gcc wget gzip busybox sudo dropbear gosu fakeroot proot curl lsof net-tools python3 python3-pip locales mosh
|
| 4 |
+
RUN locale-gen en_US.UTF-8
|
| 5 |
+
RUN busybox --install /bin
|
| 6 |
+
RUN sed -i '/^ubuntu/d' /etc/shadow
|
| 7 |
+
RUN usermod -aG sudo ubuntu
|
| 8 |
+
RUN echo "ubuntu::19879:0:99999:7:::" >> /etc/shadow && "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 9 |
+
RUN chmod 777 /etc/passwd && chmod 777 /etc/shadow && chmod 777 /etc/dropbear/* && chmod 6755 /usr/sbin/gosu
|
| 10 |
+
ENV GOSU_PLEASE_LET_ME_BE_COMPLETELY_INSECURE_I_GET_TO_KEEP_ALL_THE_PIECES="I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhäuser Gate. All those moments will be lost in time, like tears in rain. Time to die."
|
| 11 |
+
|
| 12 |
+
USER ubuntu
|
| 13 |
+
WORKDIR /home/ubuntu
|
| 14 |
+
RUN wget -q -c https://github.com/erebe/wstunnel/releases/download/v9.7.0/wstunnel_9.7.0_linux_amd64.tar.gz &&\
|
| 15 |
+
tar -xf wstunnel_*_linux_amd64.tar.gz wstunnel &&\
|
| 16 |
+
chmod +x wstunnel && rm wstunnel_*_linux_amd64.tar.gz
|
| 17 |
+
|
| 18 |
+
ENV GLIDER_VER="0.16.3"
|
| 19 |
+
RUN wget -nv https://github.com/nadoo/glider/releases/download/v${GLIDER_VER}/glider_${GLIDER_VER}_linux_amd64.tar.gz &&\
|
| 20 |
+
tar -xzvf glider_${GLIDER_VER}_linux_amd64.tar.gz --strip-components=1 glider_${GLIDER_VER}_linux_amd64/glider &&\
|
| 21 |
+
chmod +x glider && rm glider_${GLIDER_VER}_linux_amd64.tar.gz
|
| 22 |
+
|
| 23 |
+
CMD ["python -m http.server 7860 & kill $! ; dropbear -p 127.0.0.1:22022 -R -E -B -a; /home/ubuntu/glider -listen /glider -listen ws://:7860/ctrl,trojanc://passwd@"]
|