Skip to content

Commit 375f33a

Browse files
committed
fix(container): align PATH export across env and bashrc
Ensure image-level PATH and interactive shell PATH include the same tool directories in the same precedence order. Made-with: Cursor
1 parent 0432d0f commit 375f33a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Containerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ USER runner
127127
WORKDIR ${APP_HOME}
128128

129129
# Ensure user-installed CLI tools are available in all shells (sh/bash, interactive/non-interactive)
130-
ENV PATH="${APP_HOME}/.local/bin:${PATH}"
131-
130+
ENV PATH="/usr/local/bin:${APP_HOME}/.uv/bin:${APP_HOME}/.poetry/bin:${APP_HOME}/.local/bin:${PATH}"
132131
# Install Poetry latest version and add it to PATH
133132
# hadolint ignore=DL4006
134133
RUN curl -sSL https://install.python-poetry.org | python3 -
@@ -137,5 +136,5 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
137136
# hadolint ignore=DL4006
138137
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
139138

140-
# Add Poetry and UV to PATH
141-
RUN echo "export PATH=\"${APP_HOME}/.local/bin:\$PATH\"" >> ~/.bashrc
139+
# Add user tool paths to interactive shell PATH
140+
RUN echo "export PATH=\"/usr/local/bin:${APP_HOME}/.uv/bin:${APP_HOME}/.poetry/bin:${APP_HOME}/.local/bin:\$PATH\"" >> ~/.bashrc

0 commit comments

Comments
 (0)