Make Dockerfile more bashy

This commit is contained in:
Kristóf Tóth 2018-03-23 21:29:27 +01:00
parent 3e77b30920
commit a3fa75b676

View File

@ -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