add docker build

This commit is contained in:
LunaChocken
2026-03-17 22:12:00 +00:00
parent 7efd1b3b5f
commit 7223f32be3
5 changed files with 84 additions and 77 deletions
+14
View File
@@ -0,0 +1,14 @@
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
# Run the application
CMD ["uv", "run", "main.py"]