File size: 570 Bytes
aca1d62
1e48aff
aca1d62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e48aff
aca1d62
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Use a base Python image
FROM python:3.11.9

# Install system-level dependencies
RUN apt-get update && apt-get install -y \
    ffmpeg \
    imagemagick

# Install Poetry
RUN curl -sSL https://install.python-poetry.org | python3 - && \
    export PATH="$HOME/.local/bin:$PATH"

# Set working directory
WORKDIR /app

# Copy all project files into the container
COPY . /app

# Install Python dependencies using Poetry
RUN pip install poetry
RUN poetry config virtualenvs.create false && poetry install --no-root

# Command to run the Gradio app
CMD ["python", "app.py"]