Spaces:
Sleeping
Sleeping
Update dockerfile
Browse files- dockerfile +16 -5
dockerfile
CHANGED
|
@@ -1,11 +1,22 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
WORKDIR /app
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
COPY requirements.txt /app/requirements.txt
|
| 6 |
COPY .streamlit/config.toml /app/.streamlit/config.toml
|
| 7 |
COPY streamlit_app.py /app
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 10 |
EXPOSE 8501
|
| 11 |
CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "8501"]
|
|
|
|
| 1 |
+
FROM python:3.11-slim-bullseye
|
| 2 |
WORKDIR /app
|
| 3 |
+
|
| 4 |
+
# System packages needed for ffmpeg and yt‑dlp
|
| 5 |
+
RUN apt-get update && apt-get -y upgrade && \
|
| 6 |
+
apt-get install -y ffmpeg && \
|
| 7 |
+
rm -rf /var/lib/apt/lists/*
|
| 8 |
+
|
| 9 |
+
# Create folders used by the app
|
| 10 |
+
RUN mkdir -p /app/data /app/.streamlit
|
| 11 |
+
|
| 12 |
+
# Copy source files
|
| 13 |
COPY requirements.txt /app/requirements.txt
|
| 14 |
COPY .streamlit/config.toml /app/.streamlit/config.toml
|
| 15 |
COPY streamlit_app.py /app
|
| 16 |
+
|
| 17 |
+
# Install Python deps
|
| 18 |
+
RUN pip install --upgrade pip && \
|
| 19 |
+
pip install -r requirements.txt
|
| 20 |
+
|
| 21 |
EXPOSE 8501
|
| 22 |
CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "8501"]
|