Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
-
# Use the full Python image
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
-
# 1. Install system dependencies
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
ffmpeg \
|
| 7 |
libavdevice-dev \
|
|
@@ -22,8 +21,11 @@ RUN pip install --upgrade pip
|
|
| 22 |
COPY requirements.txt .
|
| 23 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
-
# 5. Copy the
|
| 26 |
COPY . .
|
| 27 |
|
| 28 |
-
# 6.
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
+
# 1. Install system dependencies
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
ffmpeg \
|
| 6 |
libavdevice-dev \
|
|
|
|
| 21 |
COPY requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
+
# 5. Copy ALL files (Including the new .streamlit folder)
|
| 25 |
COPY . .
|
| 26 |
|
| 27 |
+
# 6. Expose the port
|
| 28 |
+
EXPOSE 7860
|
| 29 |
+
|
| 30 |
+
# 7. Run App (Simple command, relying on config.toml)
|
| 31 |
+
CMD ["streamlit", "run", "app.py"]
|