rahulreshma commited on
Commit
08a2f84
·
verified ·
1 Parent(s): b2dda0c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -81,18 +81,18 @@ RUN mkdir /data && chown user:user /data
81
  # End root user section
82
  #######################################
83
 
84
- USER user
85
 
86
  # Python packages
87
  RUN --mount=target=requirements.txt,source=requirements.txt \
88
  pip install --no-cache-dir --upgrade -r requirements.txt
89
 
90
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
91
- COPY --chown=user . $HOME/app
92
 
93
  RUN chmod +x start_server.sh
94
 
95
- COPY --chown=user login.html /home/user/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
96
 
97
  ENV PYTHONUNBUFFERED=1 \
98
  GRADIO_ALLOW_FLAGGING=never \
 
81
  # End root user section
82
  #######################################
83
 
84
+ USER root
85
 
86
  # Python packages
87
  RUN --mount=target=requirements.txt,source=requirements.txt \
88
  pip install --no-cache-dir --upgrade -r requirements.txt
89
 
90
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
91
+ COPY --chown=root . $HOME/app
92
 
93
  RUN chmod +x start_server.sh
94
 
95
+ COPY --chown=root login.html /home/user/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
96
 
97
  ENV PYTHONUNBUFFERED=1 \
98
  GRADIO_ALLOW_FLAGGING=never \