diff --git a/Dockerfile b/Dockerfile index 1a4cf0b..a4ea7ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ RUN yarn install # --- Stage 2: Builder --- FROM node:20-alpine AS builder +RUN corepack enable +RUN corepack prepare yarn@stable --activate ARG DATABASE_URL ENV DATABASE_URL=${DATABASE_URL} RUN corepack enable @@ -20,6 +22,8 @@ RUN yarn build # --- Stage 3: Runner --- FROM node:20-alpine AS runner +RUN corepack enable +RUN corepack prepare yarn@stable --activate ARG DATABASE_URL ENV DATABASE_URL=${DATABASE_URL} RUN corepack enable @@ -30,4 +34,4 @@ COPY --from=builder /app/.yarn ./.yarn EXPOSE 3000 -CMD ["yarn", "start"] # Replace with your start command +CMD ["yarn", "start"]