Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +26 -1
Dockerfile
CHANGED
|
@@ -1,2 +1,27 @@
|
|
| 1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
RUN mkdir /app/uploads && chmod 777 /app/uploads
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use Python 3.10 to satisfy matplotlib>=3.10.0
|
| 2 |
+
FROM python:3.10-slim
|
| 3 |
+
|
| 4 |
+
# Set the working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install required system packages
|
| 8 |
+
RUN apt-get update && apt-get install -y \
|
| 9 |
+
build-essential \
|
| 10 |
+
curl \
|
| 11 |
+
software-properties-common \
|
| 12 |
+
git \
|
| 13 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
+
|
| 15 |
+
# Copy files
|
| 16 |
+
COPY requirements.txt ./
|
| 17 |
+
COPY src/ ./src/
|
| 18 |
+
|
| 19 |
+
# Install Python dependencies
|
| 20 |
+
RUN pip install --upgrade pip
|
| 21 |
+
RUN pip install -r requirements.txt
|
| 22 |
+
|
| 23 |
+
# Create uploads directory with full permissions
|
| 24 |
RUN mkdir /app/uploads && chmod 777 /app/uploads
|
| 25 |
+
|
| 26 |
+
# Set the entrypoint to run your Streamlit app
|
| 27 |
+
CMD ["streamlit", "run", "src/streamlit_app.py"]
|