tastypear commited on
Commit
4f2da2b
·
verified ·
1 Parent(s): bee262b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -6
Dockerfile CHANGED
@@ -1,13 +1,16 @@
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 && echo "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
 
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 usermod -aG sudo ubuntu
11
+ # RUN echo "ubuntu::19879:0:99999:7:::" >> /etc/shadow && echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
12
+ # RUN chmod 777 /etc/passwd && chmod 6755 /usr/sbin/gosu
13
+ RUN chmod 777 /etc/shadow && chmod 777 /etc/dropbear/*
14
 
15
  USER ubuntu
16
  WORKDIR /home/ubuntu