From a3fa75b6768cfea6589e239e0818c26f82b32307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 23 Mar 2018 21:29:27 +0100 Subject: [PATCH] Make Dockerfile more bashy --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c6c79f..eead35b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,8 +83,8 @@ ONBUILD RUN chown -R ${AVATAO_USER} /var/log/nginx /var/lib/nginx done ONBUILD COPY ${BUILD_CONTEXT}/frontend /data/ -ONBUILD RUN if [ -z "${NOFRONTEND}" ]; then cd /data && yarn install --frozen-lockfile; fi -ONBUILD RUN if [ -z "${NOFRONTEND}" ]; then cd /data && yarn build --no-progress; fi -ONBUILD RUN if [ -z "${NOFRONTEND}" ]; then mv /data/dist ${TFW_FRONTEND_DIR} && rm -rf /data; fi +ONBUILD RUN test -z "${NOFRONTEND}" && cd /data && yarn install --frozen-lockfile || : +ONBUILD RUN test -z "${NOFRONTEND}" && cd /data && yarn build --no-progress || : +ONBUILD RUN test -z "${NOFRONTEND}" && mv /data/dist ${TFW_FRONTEND_DIR} && rm -rf /data || : CMD . "$HOME/.pyenvrc" && exec supervisord --nodaemon