diff --git a/docker/Dockerfile.proxy b/docker/Dockerfile.proxy index 41a8d34d..a47bbc5c 100644 --- a/docker/Dockerfile.proxy +++ b/docker/Dockerfile.proxy @@ -11,10 +11,10 @@ WORKDIR /code COPY . . -RUN if [[ "${FIPS_MODE}" = "enabled" ]]; \ +RUN bash -c 'if [[ "${FIPS_MODE}" = "enabled" ]]; \ then echo "building in fips mode"; make clean split-proxy-fips entrypoints EXTRA_BUILD_ARGS="${EXTRA_BUILD_ARGS}"; mv split-proxy-fips split-proxy; \ else echo "building in standard mode"; make clean split-proxy entrypoints EXTRA_BUILD_ARGS="${EXTRA_BUILD_ARGS}"; \ - fi + fi' # Runner stage FROM debian:12.4 AS runner diff --git a/docker/Dockerfile.synchronizer b/docker/Dockerfile.synchronizer index fbe3cd2b..350009a7 100644 --- a/docker/Dockerfile.synchronizer +++ b/docker/Dockerfile.synchronizer @@ -11,10 +11,10 @@ WORKDIR /code COPY . . -RUN if [[ "${FIPS_MODE}" = "enabled" ]]; \ +RUN bash -c 'if [[ "${FIPS_MODE}" = "enabled" ]]; \ then echo "building in fips mode"; make clean split-sync-fips entrypoints EXTRA_BUILD_ARGS="${EXTRA_BUILD_ARGS}"; mv split-sync-fips split-sync; \ else echo "building in standard mode"; make clean split-sync entrypoints EXTRA_BUILD_ARGS="${EXTRA_BUILD_ARGS}"; \ - fi + fi' # Runner stage FROM debian:12.4 AS runner