fix: we can address DL3003 using WORKDIR here

This commit is contained in:
Daniel Wolf 2024-04-01 09:41:22 -04:00
parent 380eefbd4f
commit 30715460e9
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,7 @@ ENV HAIKU_TOOLCHAIN=/opt/haiku/toolchain HAIKU_SYSROOT=/opt/haiku/sysroot
ENV PATH=${HAIKU_TOOLCHAIN}/bin:$PATH
COPY override/usr/local/bin/haiku-install /usr/local/bin/haiku-install
# hadolint ignore=DL3003
WORKDIR /opt/haiku
RUN if [ "$(uname -m)" = "i686" ]; then \
HAIKUARCH_TOOLCHAIN="x86" && HAIKUARCH_SYSROOT="x86_gcc2"; else \
HAIKUARCH_TOOLCHAIN="$(uname -m)" && HAIKUARCH_SYSROOT="$(uname -m)"; fi \
@ -25,7 +25,6 @@ RUN if [ "$(uname -m)" = "i686" ]; then \
&& export HAIKUARCH_SYSROOT \
&& git -C "${HOME}" clone --single-branch --depth=1 --branch="${HAIKU_VERSION}" https://review.haiku-os.org/buildtools.git \
&& git -C "${HOME}" clone --branch="${HAIKU_VERSION}" https://review.haiku-os.org/haiku.git \
&& mkdir -p /opt/haiku && cd /opt/haiku \
&& if [ ! "${HAIKUARCH_TOOLCHAIN}" = "${HAIKUARCH_SYSROOT}" ]; then \
"${HOME}/haiku/configure" --build-cross-tools "${HAIKUARCH_SYSROOT}" --build-cross-tools "${HAIKUARCH_TOOLCHAIN}" --cross-tools-source "${HOME}/buildtools" --distro-compatibility compatible --use-gcc-pipe -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )); else \
"${HOME}/haiku/configure" --build-cross-tools "${HAIKUARCH_TOOLCHAIN}" --cross-tools-source "${HOME}/buildtools" --distro-compatibility compatible --use-gcc-pipe -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )); fi \