17 lines
365 B
Docker
17 lines
365 B
Docker
FROM python:3.14-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip install --no-cache-dir poetry
|
|
|
|
COPY pyproject.toml poetry.lock ./
|
|
RUN poetry config virtualenvs.create false \
|
|
&& poetry install --no-interaction --no-root
|
|
|
|
COPY app ./app
|
|
COPY config.yaml ./config.yaml
|
|
|
|
CMD ["poetry", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|