From f799ec31ce709b3113c7f3a859218ccd8748b23f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 15 Oct 2024 12:16:36 +0200 Subject: [PATCH] Update Dockerfile --- zzz_test/Dockerfile | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/zzz_test/Dockerfile b/zzz_test/Dockerfile index 58bb8f912..e392fdcbe 100644 --- a/zzz_test/Dockerfile +++ b/zzz_test/Dockerfile @@ -8,20 +8,10 @@ ENV SUB_PATH=$SUB_PATH WORKDIR /app # Clone the Mealie repository to get the frontend source code -RUN git clone https://github.com/mealie-recipes/mealie.git . - -WORKDIR /app/frontend - -# Install frontend dependencies -RUN yarn install \ - --prefer-offline \ - --frozen-lockfile \ - --non-interactive \ - --production=false \ - --network-timeout 1000000 - -# Build the frontend with the specified SUB_PATH -RUN yarn generate +RUN git clone https://github.com/mealie-recipes/mealie.git . && \ + cd /app/frontend && \ + yarn install --prefer-offline --frozen-lockfile --non-interactive --production=false --network-timeout 1000000 && \ + yarn generate # Stage 2: Build the Final Image FROM hkotel/mealie:nightly