diff --git a/mealie/Dockerfile b/mealie/Dockerfile index 92cf08c53..ea8b64f9c 100644 --- a/mealie/Dockerfile +++ b/mealie/Dockerfile @@ -24,9 +24,10 @@ ENV SUB_PATH=$SUB_PATH ENV MEALIE_VERSION="v2.8.0" # Clone the Mealie repository to get the frontend source code -# hadolint ignore=DL3003 WORKDIR /frontend -RUN mkdir tempdir && cd tempdir && git clone --branch "$MEALIE_VERSION" https://github.com/mealie-recipes/mealie.git . && \ +# hadolint ignore=DL3003 +RUN mkdir -p /frontend/tempdir && cd /frontend/tempdir || true && \ + git clone --branch "$MEALIE_VERSION" https://github.com/mealie-recipes/mealie.git . && \ cp -rf frontend/* /frontend && cd /frontend && rm -r tempdir && \ yarn install --prefer-offline --frozen-lockfile --non-interactive --production=false --network-timeout 1000000 && \ yarn generate @@ -48,7 +49,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ S6_SERVICES_GRACETIME=0 # Correct data path -# hadolint ignore=DL4006 +# hadolint ignore=DL4006,DL3003 RUN \ # Copy frontend cd /opt/mealie/lib/python*/site-packages/mealie && \