Skip to content

Commit

Permalink
add SHELL flag to capture error and trace
Browse files Browse the repository at this point in the history
  • Loading branch information
kicito committed Dec 10, 2024
1 parent b390035 commit 2d48a7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/all.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN npm run build
# build mdbook
FROM nginx:1.27.1-alpine

SHELL [ "/bin/sh", "-ex" ]

RUN apk update && \
apk add --no-cache curl git
# download mdbook and plugins binary
Expand All @@ -29,7 +31,6 @@ COPY --from=highlight-jolie /highlight-jolie/dist/highlight.js /jolie-docs/theme

RUN git clone https://github.com/jolie/docs.git
WORKDIR /docs

RUN for version in $(git for-each-ref --shell --format='%(refname:lstrip=3)' | grep 'v[0-9]*\.[0-9]*\.x' | tr -d "'"); \
do \
echo "Copying version ${version}"; \
Expand Down

0 comments on commit 2d48a7f

Please sign in to comment.