fix start command
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m35s
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m35s
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user