tastypear commited on
Commit
e7d8b6b
·
verified ·
1 Parent(s): bf6fc36

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -1,20 +1,20 @@
1
  FROM ubuntu:latest
2
 
3
- RUN apt update -y && apt install -y git gcc wget gzip busybox sudo dropbear fakeroot curl lsof net-tools python3 python3-pip
 
4
  # RUN apt install gosu locales mosh
5
  # RUN locale-gen en_US.UTF-8
6
  # 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."
7
- RUN busybox --install /bin
8
 
9
- RUN sed -i '/^ubuntu/d' /etc/shadow
10
- RUN echo "ubuntu::19879:0:99999:7:::" >> /etc/shadow
11
  # RUN usermod -aG sudo ubuntu
12
  # RUN echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
13
  # RUN chmod 777 /etc/passwd && chmod 6755 /usr/sbin/gosu
14
- RUN chmod 777 /etc/shadow && chmod 777 /etc/dropbear/*
15
 
16
  USER ubuntu
17
  WORKDIR /home/ubuntu
 
18
  RUN wget -q -c https://github.com/erebe/wstunnel/releases/download/v9.7.0/wstunnel_9.7.0_linux_amd64.tar.gz &&\
19
  tar -xf wstunnel_*_linux_amd64.tar.gz wstunnel &&\
20
  chmod +x wstunnel && rm wstunnel_*_linux_amd64.tar.gz
@@ -24,7 +24,10 @@ RUN wget -nv https://github.com/nadoo/glider/releases/download/v${GLIDER_VER}/gl
24
  tar -xzvf glider_${GLIDER_VER}_linux_amd64.tar.gz --strip-components=1 glider_${GLIDER_VER}_linux_amd64/glider &&\
25
  chmod +x glider && rm glider_${GLIDER_VER}_linux_amd64.tar.gz
26
 
27
- ENV PS1="localhost:\w\$"
28
-
29
  COPY . .
 
 
 
 
 
30
  CMD ["bash","startup.sh"]
 
1
  FROM ubuntu:latest
2
 
3
+ RUN apt update -y && apt install --no-install-recommends -y git gcc wget gzip busybox sudo dropbear fakeroot curl lsof net-tools python3 python3-pip nginx
4
+ RUN busybox --install /bin
5
  # RUN apt install gosu locales mosh
6
  # RUN locale-gen en_US.UTF-8
7
  # 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."
 
8
 
9
+ RUN sed -i '/^ubuntu/d' /etc/shadow && echo "ubuntu::19879:0:99999:7:::" >> /etc/shadow && chmod 644 /etc/shadow
10
+ RUN chmod 644 /etc/dropbear/*
11
  # RUN usermod -aG sudo ubuntu
12
  # RUN echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
13
  # RUN chmod 777 /etc/passwd && chmod 6755 /usr/sbin/gosu
 
14
 
15
  USER ubuntu
16
  WORKDIR /home/ubuntu
17
+
18
  RUN wget -q -c https://github.com/erebe/wstunnel/releases/download/v9.7.0/wstunnel_9.7.0_linux_amd64.tar.gz &&\
19
  tar -xf wstunnel_*_linux_amd64.tar.gz wstunnel &&\
20
  chmod +x wstunnel && rm wstunnel_*_linux_amd64.tar.gz
 
24
  tar -xzvf glider_${GLIDER_VER}_linux_amd64.tar.gz --strip-components=1 glider_${GLIDER_VER}_linux_amd64/glider &&\
25
  chmod +x glider && rm glider_${GLIDER_VER}_linux_amd64.tar.gz
26
 
 
 
27
  COPY . .
28
+
29
+ RUN chown -R ubuntu:ubuntu
30
+
31
+ RUN nginx -t
32
+
33
  CMD ["bash","startup.sh"]