Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -14,9 +14,11 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
# β
Copy project files
|
15 |
COPY . .
|
16 |
|
17 |
-
# β
Install Python dependencies
|
18 |
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
-
|
|
|
|
|
20 |
|
21 |
# β
Ensure MoviePy has access to FFmpeg
|
22 |
ENV IMAGEIO_FFMPEG_EXE=/usr/bin/ffmpeg
|
@@ -26,3 +28,4 @@ EXPOSE 7860 8501
|
|
26 |
|
27 |
# β
Run both FastAPI and Streamlit
|
28 |
CMD uvicorn app:app --host 0.0.0.0 --port 7860 & streamlit run app_ui.py --server.port 8501 --server.address 0.0.0.0
|
|
|
|
14 |
# β
Copy project files
|
15 |
COPY . .
|
16 |
|
17 |
+
# β
Install Python dependencies
|
18 |
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
+
|
20 |
+
# β
Manually install MoviePy after all dependencies are installed
|
21 |
+
RUN pip install --no-cache-dir moviepy imageio[ffmpeg]
|
22 |
|
23 |
# β
Ensure MoviePy has access to FFmpeg
|
24 |
ENV IMAGEIO_FFMPEG_EXE=/usr/bin/ffmpeg
|
|
|
28 |
|
29 |
# β
Run both FastAPI and Streamlit
|
30 |
CMD uvicorn app:app --host 0.0.0.0 --port 7860 & streamlit run app_ui.py --server.port 8501 --server.address 0.0.0.0
|
31 |
+
|