From 5b15acad5c21fedd891cbba7278d3e84c496f195 Mon Sep 17 00:00:00 2001 From: sql-hkr Date: Fri, 17 Oct 2025 20:58:34 +0900 Subject: [PATCH 1/2] Add Dockerfile and docker-compose.yml (#8) --- Dockerfile | 14 ++++++++++++++ docker-compose.yml | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5d5620b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:3.13-slim-trixie +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ + +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential \ + graphviz \ + && rm -rf /var/lib/apt/lists/* + +COPY . /app +WORKDIR /app + +RUN uv sync --frozen + +ENV PATH="/app/.venv/bin:$PATH" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6fee4b0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +services: + app: + build: . + tty: true + working_dir: /app + volumes: + - .:/app From a5bb7f5100257507cac24c741cc998a178b7da8e Mon Sep 17 00:00:00 2001 From: sql-hkr Date: Fri, 17 Oct 2025 21:20:46 +0900 Subject: [PATCH 2/2] Update Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5d5620b..d03c508 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ COPY . /app WORKDIR /app +ENV UV_PROJECT_ENVIRONMENT=/venv +ENV PATH="/venv/bin:$PATH" RUN uv sync --frozen - -ENV PATH="/app/.venv/bin:$PATH"