File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ USER ${NONROOT_USER}
123123ENV HOME=/home/${NONROOT_USER}
124124WORKDIR ${HOME}
125125
126+ # Set Conan home directory, so the users of this image can find default profile
127+ ENV CONAN_HOME=${HOME}/.conan2
128+
126129# Create a default Conan profile.
127130RUN <<EOF
128131conan profile detect
@@ -194,6 +197,9 @@ USER ${NONROOT_USER}
194197ENV HOME=/home/${NONROOT_USER}
195198WORKDIR ${HOME}
196199
200+ # Set Conan home directory, so the users of this image can find default profile
201+ ENV CONAN_HOME=${HOME}/.conan2
202+
197203# Create a default Conan profile.
198204RUN <<EOF
199205conan profile detect
Original file line number Diff line number Diff line change @@ -86,9 +86,8 @@ USER ${NONROOT_USER}
8686ENV HOME=/home/${NONROOT_USER}
8787WORKDIR ${HOME}
8888
89- # Fix the Conan user home directory as it otherwise will point to the
90- # /opt/app-root/src/.conan2 directory.
91- ENV CONAN_HOME=/home/${NONROOT_USER}/.conan2
89+ # Set Conan home directory, so the users of this image can find default profile
90+ ENV CONAN_HOME=${HOME}/.conan2
9291
9392# Create a default Conan profile.
9493RUN <<EOF
@@ -170,9 +169,8 @@ USER ${NONROOT_USER}
170169ENV HOME=/home/${NONROOT_USER}
171170WORKDIR ${HOME}
172171
173- # Fix the Conan user home directory as it otherwise will point to the
174- # /opt/app-root/src/.conan2 directory.
175- ENV CONAN_HOME=/home/${NONROOT_USER}/.conan2
172+ # Set Conan home directory, so the users of this image can find default profile
173+ ENV CONAN_HOME=${HOME}/.conan2
176174
177175# Create a default Conan profile.
178176RUN <<EOF
Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ USER ${NONROOT_USER}
103103ENV HOME=/home/${NONROOT_USER}
104104WORKDIR ${HOME}
105105
106+ # Set Conan home directory, so the users of this image can find default profile
107+ ENV CONAN_HOME=${HOME}/.conan2
108+
106109# Create a default Conan profile.
107110RUN <<EOF
108111conan profile detect
@@ -187,6 +190,9 @@ USER ${NONROOT_USER}
187190ENV HOME=/home/${NONROOT_USER}
188191WORKDIR ${HOME}
189192
193+ # Set Conan home directory, so the users of this image can find default profile
194+ ENV CONAN_HOME=${HOME}/.conan2
195+
190196# Create a default Conan profile.
191197RUN <<EOF
192198conan profile detect
You can’t perform that action at this time.
0 commit comments