File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed
Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 120120
121121# Switch to the non-root user.
122122USER ${NONROOT_USER}
123- WORKDIR /home/${NONROOT_USER}
123+ ENV HOME=/home/${NONROOT_USER}
124+ WORKDIR ${HOME}
124125
125126# Create a default Conan profile.
126127RUN <<EOF
190191
191192# Switch to the non-root user.
192193USER ${NONROOT_USER}
193- WORKDIR /home/${NONROOT_USER}
194+ ENV HOME=/home/${NONROOT_USER}
195+ WORKDIR ${HOME}
194196
195197# Create a default Conan profile.
196198RUN <<EOF
Original file line number Diff line number Diff line change 8383
8484# Switch to the non-root user.
8585USER ${NONROOT_USER}
86- WORKDIR /home/${NONROOT_USER}
86+ ENV HOME=/home/${NONROOT_USER}
87+ WORKDIR ${HOME}
8788
8889# Fix the Conan user home directory as it otherwise will point to the
8990# /opt/app-root/src/.conan2 directory.
166167
167168# Switch to the non-root user.
168169USER ${NONROOT_USER}
169- WORKDIR /home/${NONROOT_USER}
170+ ENV HOME=/home/${NONROOT_USER}
171+ WORKDIR ${HOME}
170172
171173# Fix the Conan user home directory as it otherwise will point to the
172174# /opt/app-root/src/.conan2 directory.
Original file line number Diff line number Diff line change @@ -58,4 +58,5 @@ RUN pipx install --pip-args='--no-cache' clang-format==${CLANG_FORMAT_VERSION} &
5858
5959# Switch to the non-root user.
6060USER ${NONROOT_USER}
61- WORKDIR /home/${NONROOT_USER}
61+ ENV HOME=/home/${NONROOT_USER}
62+ WORKDIR ${HOME}
Original file line number Diff line number Diff line change 100100
101101# Switch to the non-root user.
102102USER ${NONROOT_USER}
103- WORKDIR /home/${NONROOT_USER}
103+ ENV HOME=/home/${NONROOT_USER}
104+ WORKDIR ${HOME}
104105
105106# Create a default Conan profile.
106107RUN <<EOF
183184
184185# Switch to the non-root user.
185186USER ${NONROOT_USER}
186- WORKDIR /home/${NONROOT_USER}
187+ ENV HOME=/home/${NONROOT_USER}
188+ WORKDIR ${HOME}
187189
188190# Create a default Conan profile.
189191RUN <<EOF
You can’t perform that action at this time.
0 commit comments