Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -43,12 +43,15 @@ ENV HF_HOME=/app/.cache/huggingface
|
|
43 |
# Switch to the non-privileged user to run the application.
|
44 |
USER appuser
|
45 |
|
46 |
-
# Copy the
|
47 |
COPY . .
|
48 |
|
49 |
# Expose the ports that the application listens on.
|
50 |
EXPOSE 7860
|
51 |
EXPOSE 8501
|
52 |
|
53 |
-
# Run the application
|
54 |
-
CMD ["
|
|
|
|
|
|
|
|
43 |
# Switch to the non-privileged user to run the application.
|
44 |
USER appuser
|
45 |
|
46 |
+
# Copy the source code into the container.
|
47 |
COPY . .
|
48 |
|
49 |
# Expose the ports that the application listens on.
|
50 |
EXPOSE 7860
|
51 |
EXPOSE 8501
|
52 |
|
53 |
+
# Run the FastAPI application using uvicorn
|
54 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
55 |
+
|
56 |
+
# Start the Streamlit application separately
|
57 |
+
CMD ["streamlit", "run", "frontend.py", "--server.port", "8501", "--server.enableXsrfProtection", "false"]
|