This commit is contained in:
@@ -5,7 +5,6 @@ RUN corepack prepare yarn@stable --activate
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock .yarnrc.yml ./
|
||||
RUN yarn install
|
||||
RUN ls -lR /app
|
||||
|
||||
# --- Stage 2: Builder ---
|
||||
FROM node:20-alpine AS builder
|
||||
@@ -13,6 +12,7 @@ RUN corepack enable
|
||||
RUN corepack prepare yarn@stable --activate
|
||||
WORKDIR /app
|
||||
COPY --from=dependencies /app/node_modules ./
|
||||
RUN ls -lR /app/node_modules
|
||||
COPY . /app/
|
||||
RUN yarn build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user