Skip to content

Commit 02152ec

Browse files
committed
docker: Install uv the right way
1 parent c7372b8 commit 02152ec

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Container/Dockerfile.deeploy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,15 @@ RUN apt-get update && \
100100
wget \
101101
ccache \
102102
make \
103-
curl \
104103
libpixman-1-dev \
105104
libsdl2-dev \
106105
python-is-python3 \
107106
gcc \
108107
zsh
109108

110109
# Install UV and Python dependencies
111-
RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
112-
uv sync --no-dev
110+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
111+
RUN uv sync --no-dev
113112

114113
# Install CMake
115114
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \

Container/Dockerfile.toolchain

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
6464
fi
6565

6666
# Install uv and meson
67-
RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
68-
uv tool install meson
67+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
68+
RUN uv tool install meson
6969

7070
COPY toolchain/ toolchain/
7171
COPY Makefile ./

0 commit comments

Comments
 (0)