SatCat commited on
Commit
f1da2bf
·
1 Parent(s): eb491f7

remove etc.

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -13
Dockerfile CHANGED
@@ -1,11 +1,10 @@
1
  FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
 
3
- # noninteractive Europe/Paris
4
  ENV DEBIAN_FRONTEND=noninteractive \
5
  TZ=Europe/Paris
6
 
7
  # Remove any third-party apt sources to avoid issues with expiring keys.
8
- # Install some basic utilities remove: --no-install-recommends
9
  RUN rm -f /etc/apt/sources.list.d/*.list && \
10
  apt-get update && apt-get install -y --no-install-recommends \
11
  curl \
@@ -19,7 +18,6 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
19
  bzip2 \
20
  libx11-6 \
21
  build-essential \
22
- libsndfile-dev \
23
  software-properties-common \
24
  && rm -rf /var/lib/apt/lists/*
25
 
@@ -42,7 +40,7 @@ RUN usermod -aG sudo user
42
  RUN chmod u+s /usr/bin/sudo
43
  RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
44
  RUN echo '$user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
45
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
46
  USER user
47
 
48
  # All users can use /home/user as their home directory
@@ -64,14 +62,10 @@ WORKDIR $HOME/app
64
  #######################################
65
  # Start root user section
66
  #######################################
67
-
68
  USER root
69
 
70
  RUN pam-auth-update
71
 
72
- RUN echo user:694740 | chpasswd
73
- RUN echo root:694740 | chpasswd
74
-
75
  # User Debian packages
76
  ## Security warning : Potential user code executed as root (build time)
77
  ### remove --no-install-recommends
@@ -86,7 +80,6 @@ RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
86
  #######################################
87
  # End root user section
88
  #######################################
89
-
90
  USER user
91
 
92
  # Python packages
@@ -98,8 +91,6 @@ COPY --chown=user . $HOME/app
98
 
99
  RUN chmod +x start_server.sh
100
 
101
- ### COPY --chown=user login.html /home/user/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
102
-
103
  ENV PYTHONUNBUFFERED=1 \
104
  GRADIO_ALLOW_FLAGGING=never \
105
  GRADIO_NUM_PORTS=1 \
@@ -108,5 +99,4 @@ ENV PYTHONUNBUFFERED=1 \
108
  SYSTEM=spaces \
109
  SHELL=/bin/bash
110
 
111
- CMD ["./start_server.sh"]
112
- #CMD ./start_server.sh"
 
1
  FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
 
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
  TZ=Europe/Paris
5
 
6
  # Remove any third-party apt sources to avoid issues with expiring keys.
7
+ # Install some basic utilities
8
  RUN rm -f /etc/apt/sources.list.d/*.list && \
9
  apt-get update && apt-get install -y --no-install-recommends \
10
  curl \
 
18
  bzip2 \
19
  libx11-6 \
20
  build-essential \
 
21
  software-properties-common \
22
  && rm -rf /var/lib/apt/lists/*
23
 
 
40
  RUN chmod u+s /usr/bin/sudo
41
  RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
42
  RUN echo '$user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
43
+
44
  USER user
45
 
46
  # All users can use /home/user as their home directory
 
62
  #######################################
63
  # Start root user section
64
  #######################################
 
65
  USER root
66
 
67
  RUN pam-auth-update
68
 
 
 
 
69
  # User Debian packages
70
  ## Security warning : Potential user code executed as root (build time)
71
  ### remove --no-install-recommends
 
80
  #######################################
81
  # End root user section
82
  #######################################
 
83
  USER user
84
 
85
  # Python packages
 
91
 
92
  RUN chmod +x start_server.sh
93
 
 
 
94
  ENV PYTHONUNBUFFERED=1 \
95
  GRADIO_ALLOW_FLAGGING=never \
96
  GRADIO_NUM_PORTS=1 \
 
99
  SYSTEM=spaces \
100
  SHELL=/bin/bash
101
 
102
+ CMD ["./start_server.sh"]