File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33lib64
44share
55pyvenv.cfg
6- __pycache__
6+ __pycache__
7+ .vscode
Original file line number Diff line number Diff line change @@ -4,21 +4,14 @@ FROM python:3.10
44WORKDIR /playground
55RUN useradd -m iac
66
7- ENV PATH="/root/.local/bin:$PATH" \
8- PYTHONDONTWRITEBYTECODE=1 \
9- PYTHONUNBUFFERED=1
10-
11-
12- RUN apt-get update && apt-get install curl -y \
13- && rm -rf /var/lib/apt/lists/* \
14- && curl -sSL https://install.python-poetry.org | python3 \
15- && poetry config virtualenvs.create false
7+ # Install uv.
8+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
169
1710COPY --chown=iac:iac pyproject.toml .
18- COPY --chown=iac:iac poetry .lock .
11+ COPY --chown=iac:iac uv .lock .
1912
20- # poetry does not support subdirectory yet
21- RUN poetry install --no-dev --no-interaction --no-ansi
13+ ENV UV_PROJECT_ENVIRONMENT=/usr/local
14+ RUN uv sync --frozen --no-cache --no-dev
2215
2316COPY --chown=iac:iac . .
2417
You can’t perform that action at this time.
0 commit comments