Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Sep 3, 2024
1 parent f3e80d8 commit 0801331
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM ubuntu AS builder

COPY --from=ghcr.io/astral-sh/uv /uv /bin/uv
RUN mkdir /app
WORKDIR /app
ENV UV_PYTHON_INSTALL_DIR=/app/python

COPY --from=ghcr.io/astral-sh/uv:0.4 /uv /bin/uv

# Install the dependencies
ADD pyproject.toml uv.lock /app/
RUN mkdir -p src/github_wikidata_bot \
&& touch src/github_wikidata_bot/__init__.py \
&& UV_PYTHON_INSTALL_DIR=/app/python uv sync --no-dev
RUN uv sync --no-dev --no-install-project --locked

# Install the project itself
ADD src /app/src
RUN uv sync --no-dev --locked

FROM ubuntu

Expand Down

0 comments on commit 0801331

Please sign in to comment.