Team13.4 / Dockerfile
Xmaster6y's picture
port
21471e3
raw
history blame
361 Bytes
FROM python:3.9
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
RUN pip install uv --no-cache-dir
COPY --chown=user ./pyproject.toml /app/pyproject.toml
COPY --chown=user ./uv.lock /app/uv.lock
RUN uv sync
COPY --chown=user . /app
CMD ["uv", "run", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]