Upload folder using huggingface_hub
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
|
@@ -15,13 +15,8 @@ RUN pip install --no-cache-dir --upgrade pip \
|
|
| 15 |
# Copy the rest of the app (app.py, etc.)
|
| 16 |
COPY . /app
|
| 17 |
|
| 18 |
-
#
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
-
# Start Streamlit directly (
|
| 22 |
-
CMD ["streamlit", "run", "app.py",
|
| 23 |
-
"--server.port=7860",
|
| 24 |
-
"--server.address=0.0.0.0",
|
| 25 |
-
"--server.headless=true",
|
| 26 |
-
"--server.enableCORS=false",
|
| 27 |
-
"--server.enableXsrfProtection=false"]
|
|
|
|
| 15 |
# Copy the rest of the app (app.py, etc.)
|
| 16 |
COPY . /app
|
| 17 |
|
| 18 |
+
# Expose the Streamlit port
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
+
# Start Streamlit directly (exec form, single line to avoid parse issues)
|
| 22 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|