event-management-backend/Dockerfile

17 lines
371 B
Docker
Raw Normal View History

2024-12-29 16:08:13 +00:00
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"]