Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
@@ -18,7 +18,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 18 |
RUN mkdir -p /app/images /app/videos && chmod -R 777 /app/images /app/videos
|
| 19 |
|
| 20 |
# Copy application code
|
| 21 |
-
COPY app.py text2generation.py audio_scripter.py image_scripter.py image_fetcher.py
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Expose the Flask port
|
| 24 |
EXPOSE 7860
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 18 |
RUN mkdir -p /app/images /app/videos && chmod -R 777 /app/images /app/videos
|
| 19 |
|
| 20 |
# Copy application code
|
| 21 |
+
COPY app.py text2generation.py audio_scripter.py image_scripter.py image_fetcher.py video.py ./
|
| 22 |
+
|
| 23 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
| 24 |
+
RUN apt-get update && apt-get install -y fonts-liberation
|
| 25 |
|
| 26 |
# Expose the Flask port
|
| 27 |
EXPOSE 7860
|