mhamilton723 commited on
Commit
353f9f6
1 Parent(s): 67f4f04

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -24,9 +24,16 @@ ENV PYTHONUNBUFFERED=1 \
24
  GRADIO_SERVER_NAME=0.0.0.0 \
25
  SYSTEM=spaces
26
 
27
- RUN pwd && \
28
- mkdir .cache && \
29
- chmod +777 .cache
 
 
 
 
 
 
 
30
 
31
  # Set the command to run your Streamlit app
32
  CMD ["python3", "app.py"]
 
24
  GRADIO_SERVER_NAME=0.0.0.0 \
25
  SYSTEM=spaces
26
 
27
+
28
+ RUN useradd -m -u 1000 user
29
+ USER user
30
+ ENV HOME=/home/user \
31
+ PATH=/home/user/.local/bin:$PATH
32
+
33
+ WORKDIR $HOME/app
34
+
35
+ COPY --chown=user . $HOME/app
36
+
37
 
38
  # Set the command to run your Streamlit app
39
  CMD ["python3", "app.py"]