File size: 499 Bytes
0dc302d
 
84308e2
0dc302d
5d86b96
9a41c54
0dc302d
95cb67b
6d09b5a
f7cb514
0dc302d
8f81bba
966074b
9682207
f7cb514
0dc302d
5b75f6d
0dc302d
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use official Python base image
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Copy requirements.txt and install Python packages
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the app
COPY app.py image_fetcher.py video.py video2.py ./
RUN apt-get update && apt-get install -y ffmpeg
RUN apt-get update && apt-get install -y fonts-liberation

# Expose port 5000 (Flask default)
EXPOSE 7860

# Run the Flask app
CMD ["python", "app.py"]