File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,22 @@ RUN wget -c "${SLINT_LSP_URL}" -O /tmp.tar.gz \
59
59
&& rm /tmp.tar.gz \
60
60
&& slint-lsp --version
61
61
62
+ # Install UV
63
+ # Set its python directory to a known, user-writable path to allow accessing the
64
+ # python versions installed during docker build from within CI runs which are
65
+ # run as non-root.
66
+ ARG UV_VERSION="0.7.13"
67
+ ARG UV_URL="https://github.com/astral-sh/uv/releases/download/$UV_VERSION/uv-x86_64-unknown-linux-gnu.tar.gz"
68
+ ENV UV_PYTHON_INSTALL_DIR="/.uv/python"
69
+ RUN wget -c "${UV_URL}" -O /tmp.tar.gz \
70
+ && tar -xzf /tmp.tar.gz --strip-components=1 -C /usr/local/bin/ \
71
+ && rm /tmp.tar.gz \
72
+ && mkdir -p $UV_PYTHON_INSTALL_DIR && chmod 777 $UV_PYTHON_INSTALL_DIR
73
+
74
+ # Pre-install a Python version
75
+ ARG PYTHON_VERSION="3.13"
76
+ RUN uv python install $PYTHON_VERSION
77
+
62
78
# Install Python packages
63
79
ENV PIP_BREAK_SYSTEM_PACKAGES=1
64
80
RUN pip3 install \
You can’t perform that action at this time.
0 commit comments