This commit is contained in:
@@ -12,7 +12,6 @@ FROM node:20-alpine AS builder
|
||||
RUN corepack enable
|
||||
RUN corepack prepare yarn@stable --activate
|
||||
WORKDIR /app
|
||||
COPY .yarn ./.yarn
|
||||
COPY --from=dependencies /app/node_modules ./
|
||||
COPY . /app/
|
||||
RUN yarn build
|
||||
@@ -23,6 +22,6 @@ RUN corepack enable
|
||||
RUN corepack prepare yarn@stable --activate
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build /app/build
|
||||
COPY --from=dependencies /app/.yarn ./.yarn
|
||||
COPY --from=builder /app/.yarn ./.yarn
|
||||
|
||||
CMD ["yarn", "start"] # Replace with your start command
|
||||
|
||||
Reference in New Issue
Block a user