Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -9,8 +9,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 9 |
# Copy the application code
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
|
|
|
|
| 14 |
|
| 15 |
-
# Command to run the application
|
| 16 |
-
CMD ["
|
|
|
|
| 9 |
# Copy the application code
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
+
# Set default port and expose it (Spaces default is 7860)
|
| 13 |
+
ENV PORT=7860
|
| 14 |
+
EXPOSE 7860
|
| 15 |
|
| 16 |
+
# Command to run the application on the assigned port
|
| 17 |
+
CMD ["bash", "-c", "streamlit run app.py --server.address=0.0.0.0 --server.port=${PORT}"]
|