add docker build

This commit is contained in:
LunaChocken
2026-03-16 20:07:33 +00:00
parent 06d19c8c8d
commit e9f5586f48
5 changed files with 214 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM python:3.12-slim-trixie
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Copy the project into the image
COPY . /app
# Disable development dependencies
ENV UV_NO_DEV=1
# Sync the project into a new environment, asserting the lockfile is up to date
WORKDIR /app
RUN uv sync --locked