Spaces:
No application file
No application file
Upload Dockerfile.py
Browse files- 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
|
| 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,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"
|
|
|
|
| 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"]
|