Skip to content

Commit

Permalink
Use ";" instead of "&&" in if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Jan 26, 2025
1 parent 13ffb40 commit 92a9b24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ RUN if [ "$IN_CI_CD" = "true" ]; then \
COPY ./docker/production/docker.env ./docker-dummy.env
RUN if [ "$IN_CI_CD" = "true" ]; then \
echo "Compiling assets"; \
set -o allexport && . ./docker-dummy.env && set +o allexport && \
SECRET_KEY_BASE="$(bundle exec rails secret)" DB_ADAPTER=nulldb bundle exec rails assets:precompile; \
set -o allexport; . ./docker-dummy.env; set +o allexport; \
SECRET_KEY_BASE="$(bundle exec rails secret)" \
DB_ADAPTER=nulldb bundle exec rails assets:precompile; \
fi

COPY --from=build-pdfcomprezzor /go/src/pdfcomprezzor.wasm /go/src/wasm_exec.js /usr/src/app/public/pdfcomprezzor/
Expand Down

0 comments on commit 92a9b24

Please sign in to comment.