@@ -18,6 +18,7 @@ pkgs+=(cmake) # Required build tool.
1818pkgs+=(file) # Required packaging tool.
1919pkgs+=(git) # Required build tool.
2020pkgs+=(gpg) # Dependency for tools requiring signing or encrypting/decrypting.
21+ pkgs+=(gnupg2) # Dependency for tools requiring signing or encrypting/decrypting.
2122pkgs+=(jq) # Pretty printing.
2223pkgs+=(libstdc++-static) # Required to statically link libraries into rippled.
2324pkgs+=(ninja-build) # Required build tool.
@@ -27,7 +28,7 @@ pkgs+=(python3-pip) # Package manager for Python applications.
2728pkgs+=(rpm-build) # Required packaging tool.
2829pkgs+=(rpmdevtools) # Required packaging tool.
2930pkgs+=(wget) # Required build tool.
30- dnf install -y --setopt=tsflags=nodocs "${pkgs[@]}"
31+ dnf install -y --allowerasing -- setopt=tsflags=nodocs "${pkgs[@]}"
3132dnf clean -y all
3233rm -rf /var/cache/dnf/*
3334EOF
8485
8586# Switch to the non-root user.
8687USER ${NONROOT_USER}
87- WORKDIR /home/${NONROOT_USER}
88+ ENV HOME=/home/${NONROOT_USER}
89+ WORKDIR ${HOME}
8890
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
91+ # Set Conan home directory, so the users of this image can find default profile
92+ ENV CONAN_HOME=${HOME}/.conan2
9293
9394# Create a default Conan profile.
9495RUN <<EOF
@@ -167,11 +168,11 @@ EOF
167168
168169# Switch to the non-root user.
169170USER ${NONROOT_USER}
170- WORKDIR /home/${NONROOT_USER}
171+ ENV HOME=/home/${NONROOT_USER}
172+ WORKDIR ${HOME}
171173
172- # Fix the Conan user home directory as it otherwise will point to the
173- # /opt/app-root/src/.conan2 directory.
174- ENV CONAN_HOME=/home/${NONROOT_USER}/.conan2
174+ # Set Conan home directory, so the users of this image can find default profile
175+ ENV CONAN_HOME=${HOME}/.conan2
175176
176177# Create a default Conan profile.
177178RUN <<EOF
0 commit comments