Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Sep 19, 2024
1 parent 2ebfa2d commit fc37cc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit fc37cc2

Please sign in to comment.