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