Skip to content

Commit

Permalink
fix uv ingoring venv
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmdlt committed Dec 25, 2024
1 parent d9324af commit 13d7f0a
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 1,526 deletions.
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ ENV PYTHONFAULTHANDLER=1 \
UV_NO_SYNC=1 \
UV_COMPILE_BYTECODE=1

WORKDIR /usr/local/src/hexlet-friends
RUN apt-get update && apt-get install -y --no-install-recommends make git
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

COPY pyproject.toml uv.lock ./
ENV VIRTUAL_ENV=/opt/venv

RUN apt-get update && \
apt-get install -y --no-install-recommends make git
RUN uv venv $VIRTUAL_ENV --python 3.13

COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
ENV UV_PROJECT_ENVIRONMENT=$VIRTUAL_ENV

WORKDIR /usr/local/src/hexlet-friends

RUN git config --global --add safe.directory "$(pwd)"

COPY pyproject.toml ./

RUN uv sync
Loading

0 comments on commit 13d7f0a

Please sign in to comment.