17 lines
269 B
Docker
17 lines
269 B
Docker
FROM python:3.13-slim
|
|
|
|
RUN pip install --no-cache-dir uv
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pyproject.toml uv.lock ./
|
|
|
|
RUN uv sync --frozen --no-dev
|
|
|
|
COPY app.py ./
|
|
COPY gunicorn.conf.py ./
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["uv", "run", "--no-sync", "gunicorn", "-c", "gunicorn.conf.py", "app:app"]
|