waveyourarms commited on
Commit
3d2e8fc
·
verified ·
1 Parent(s): 5afeb22

Upload Dockerfile.py

Browse files
Files changed (1) hide show
  1. Dockerfile.py +4 -4
Dockerfile.py CHANGED
@@ -23,12 +23,12 @@ ENV HOME=/home/user \
23
  PATH=/home/user/.local/bin:$PATH
24
 
25
  # Set up the app directory with correct permissions
26
- WORKDIR $HOME/app
27
- COPY --chown=user requirements.txt $HOME/app/
28
  RUN pip install --user -r requirements.txt
29
 
30
  # Copy the rest of the application
31
- COPY --chown=user . $HOME/app
32
 
33
  # Hugging Face Spaces specific port
34
  EXPOSE 7860
@@ -36,4 +36,4 @@ EXPOSE 7860
36
  # Command to run Streamlit correctly
37
  # --server.address=0.0.0.0 is mandatory for cloud access
38
  # --server.enableXsrfProtection=false is required for the HF iFrame
39
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
 
23
  PATH=/home/user/.local/bin:$PATH
24
 
25
  # Set up the app directory with correct permissions
26
+ WORKDIR WORKDIR /home/user/app
27
+ COPY --chown=user . .
28
  RUN pip install --user -r requirements.txt
29
 
30
  # Copy the rest of the application
31
+ COPY --chown=user . .
32
 
33
  # Hugging Face Spaces specific port
34
  EXPOSE 7860
 
36
  # Command to run Streamlit correctly
37
  # --server.address=0.0.0.0 is mandatory for cloud access
38
  # --server.enableXsrfProtection=false is required for the HF iFrame
39
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]