nateraw commited on
Commit
5e528e5
·
1 Parent(s): 028c406

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -18,7 +18,7 @@ RUN adduser --disabled-password --gecos '' --shell /bin/bash user && \
18
  chown -R user:user /app
19
 
20
  RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
21
- USER user
22
 
23
  # All users can use /home/user as their home directory
24
  ENV HOME=/home/user
@@ -52,11 +52,12 @@ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
52
 
53
  WORKDIR $HOME/app
54
 
55
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
56
- COPY --chown=user . $HOME/app
 
 
57
 
58
  RUN chmod +x start_server.sh
59
 
60
- USER root
61
  EXPOSE 7860
62
  CMD ["./start_server.sh"]
 
18
  chown -R user:user /app
19
 
20
  RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
21
+ USER root
22
 
23
  # All users can use /home/user as their home directory
24
  ENV HOME=/home/user
 
52
 
53
  WORKDIR $HOME/app
54
 
55
+ # USER root
56
+
57
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the root user
58
+ COPY --chown=root . $HOME/app
59
 
60
  RUN chmod +x start_server.sh
61
 
 
62
  EXPOSE 7860
63
  CMD ["./start_server.sh"]