From f8c2b160ad16cde43e3e25440a2298bfd8c8ea39 Mon Sep 17 00:00:00 2001 From: Lucid Date: Fri, 5 Dec 2025 23:23:17 -0500 Subject: [PATCH] workdir top level --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c111639..53d650e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,25 +1,25 @@ # --- Stage 1: Dependencies --- FROM node:20-alpine AS dependencies +WORKDIR /app RUN corepack enable RUN corepack prepare yarn@stable --activate -WORKDIR /app COPY package.json yarn.lock /app/ RUN yarn install --immutable # --- Stage 2: Builder --- FROM node:20-alpine AS builder +WORKDIR /app RUN corepack enable RUN corepack prepare yarn@stable --activate -WORKDIR /app COPY --from=dependencies /app/node_modules /app/ COPY . /app/ RUN yarn build # --- Stage 3: Runner --- FROM node:20-alpine AS runner +WORKDIR /app RUN corepack enable RUN corepack prepare yarn@stable --activate -WORKDIR /app COPY --from=builder /app/build /app/build COPY --from=dependencies /app/.yarn /app/.yarn