This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM python:3.12-slim-bookworm
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y libmariadb-dev build-essential
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN uv sync --frozen --no-cache
|
||||
|
||||
CMD ["/app/.venv/bin/fastapi", "run", "api.py", "--port", "8888", "--host", "0.0.0.0"]
|
||||
Reference in New Issue
Block a user