Skip to content

Commit ed8a663

Browse files
committed
🐛 Fix Python installer Cache dir Permissions
1 parent c8c5f8d commit ed8a663

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ RUN set -x; \
6464

6565
# Copy Poetry from other stage and add to path
6666
COPY --from=poetry-base --chown=${USERNAME}:${USERNAME} ${POETRY_HOME} ${POETRY_HOME}
67-
RUN bash -c "chown -R ${USERNAME}:${USERNAME} {${PIP_CACHE_DIR},${POETRY_CACHE_DIR},${UV_CACHE_DIR}}"
67+
RUN bash -c "chown -R $USERNAME:$USERNAME {$PIP_CACHE_DIR,$POETRY_CACHE_DIR,$UV_CACHE_DIR}"
6868

6969
# Non Root User
7070
USER ${USERNAME}
@@ -84,5 +84,5 @@ RUN set -x ; \
8484
&& poetry completions zsh > ./.oh-my-zsh/plugins/poetry/_poetry \
8585
&& poetry config installer.max-workers 10
8686

87-
RUN sudo rm -rf {./*,/tmp/*,/var/cache/apt/*,/var/lib/apt/lists/*,$PIP_CACHE_DIR/*}
87+
RUN sudo bash -c "rm -rf {./*,/tmp/*,/var/cache/apt/*,/var/lib/apt/lists/*,$PIP_CACHE_DIR/*}"
8888
ENTRYPOINT [ "/usr/bin/zsh" ]

0 commit comments

Comments
 (0)