17 lines
371 B
Docker
17 lines
371 B
Docker
|
FROM python:3.12-slim-bookworm
|
||
|
|
||
|
RUN pip install --no-cache-dir uv
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY pyproject.toml README.md LICENSE.txt requirements.lock ./
|
||
|
RUN uv pip install --no-cache --system -r requirements.lock
|
||
|
|
||
|
# Copy the rest of the files last, to optimize rebuilds
|
||
|
COPY . .
|
||
|
|
||
|
EXPOSE 8000
|
||
|
|
||
|
ENTRYPOINT ["uvicorn"]
|
||
|
CMD ["--host", "0.0.0.0", "--port", "8000", "src.__init__:app"]
|