Skip to content

Commit 72fc19f

Browse files
committed
🐛 Pin Python to version for Non Root user
1 parent d1af9a2 commit 72fc19f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ ENV UV_CACHE_DIR=/var/cache/uv \
5151
UV_PYTHON_CACHE_DIR=/var/cache/uv/python \
5252
UV_LINK_MODE=copy
5353
RUN set -x; mkdir -p $UV_CACHE_DIR && mkdir -p $UV_PYTHON_CACHE_DIR
54-
RUN --mount=type=cache,target=/var/cache/uv,sharing=locked set -x; uv python install ${PYTHONVERSION} --default && uv python pin --global ${PYTHONVERSION}
5554

5655
RUN apt autoremove --purge -y && apt clean -y
5756

5857
# Non Root User
5958
USER ${USERNAME}
6059
WORKDIR /home/${USERNAME}
60+
RUN --mount=type=cache,target=/var/cache/uv,sharing=locked set -x; uv python install ${PYTHONVERSION} --default && uv python pin --global ${PYTHONVERSION}
6161

6262
# Oh-My-Zsh user config
6363
RUN set -x ; \

0 commit comments

Comments
 (0)