File size: 284 Bytes
54bdd46
 
 
 
 
 
 
 
 
d070ff1
54bdd46
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.12.4-slim

WORKDIR /app

COPY app/ /app/
COPY pyproject.toml /app

RUN pip install --no-cache-dir poetry

ENV POETRY_VIRTUALENVS_IN_PROJECT=true
RUN poetry install --no-root

EXPOSE 7860

ENV GRADIO_SERVER_NAME="0.0.0.0"

CMD ["poetry", "run", "python", "gradio_app.py"]