From 7dc3ed10ccb169f0a23e7ea96b3a8c79dc834b9e Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Thu, 8 May 2025 10:21:27 -0500 Subject: [PATCH] build --- docker/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 360d4401..dfadb700 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,10 +4,11 @@ FROM sergeantpanda/dispatcharr:base AS base # --- Build frontend --- FROM node:20 AS frontend-builder WORKDIR /app -COPY . /app +COPY --from=base /app /app +WORKDIR /app/frontend RUN corepack enable && corepack prepare yarn@stable --activate && \ - cd frontend && yarn install && yarn build && \ - rm -rf frontend/node_modules frontend/.cache + yarn install && yarn build && \ + rm -rf node_modules .cache # --- Final image based on the base --- FROM sergeantpanda/dispatcharr:base AS final