Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +19 -3
Dockerfile
CHANGED
|
@@ -1,3 +1,19 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
+
|
| 3 |
+
# Set working directory
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
# Copy application files
|
| 7 |
+
COPY . /app
|
| 8 |
+
|
| 9 |
+
# Create and set permissions for .streamlit directory
|
| 10 |
+
RUN mkdir -p /app/.streamlit && chmod -R u+rw /app/.streamlit
|
| 11 |
+
|
| 12 |
+
# Install dependencies
|
| 13 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
+
|
| 15 |
+
# Expose Streamlit port
|
| 16 |
+
EXPOSE 8501
|
| 17 |
+
|
| 18 |
+
# Run Streamlit app
|
| 19 |
+
CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|