From fc37cc24a5e50995866332972db8d285ff947b44 Mon Sep 17 00:00:00 2001 From: Xavier Mitault Date: Thu, 19 Sep 2024 14:21:47 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 71d3494..1a61499 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,11 @@ FROM python:3.12-slim-bookworm AS base FROM base AS builder COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv -COPY pyproject.toml uv.lock /app +RUN mkdir -p /app +COPY pyproject.toml /app/pyproject.toml +COPY uv.lock /app/uv.lock WORKDIR /app RUN uv sync --frozen -COPY . /app +COPY .data /app/.data +COPY worldtimezone /app/worldtimezone CMD [ "uv", "run", "python", "-O", "./worldtimezone/__main__.py" ]