Skip to content

Commit

Permalink
More docker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
doshitan committed Jan 9, 2025
1 parent 127f696 commit 0007cd7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ RUN apt-get update \
git
RUN git config --global --add safe.directory "*"

ENV UV_COMPILE_BYTECODE=1
# copy from the cache instead of linking since it's a mounted volume
ENV UV_LINK_MODE=copy
ENV UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
UV_SYSTEM_PYTHON=true

WORKDIR /app

RUN touch README.md
COPY pyproject.toml uv.lock /app/
# install the project's dependencies
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --frozen --no-install-project --no-dev

# then the project itself
Expand Down

0 comments on commit 0007cd7

Please sign in to comment.