Skip to content

Commit

Permalink
force bash in dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mredolatti committed Feb 21, 2024
1 parent e96f5c1 commit a9d01a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile.proxy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.synchronizer
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9d01a5

Please sign in to comment.