This commit is contained in:
@@ -13,6 +13,7 @@ RUN corepack prepare yarn@stable --activate
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=dependencies /app/node_modules ./node_modules
|
COPY --from=dependencies /app/node_modules ./node_modules
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
RUN yarn prisma-gen
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# --- Stage 3: Runner ---
|
# --- Stage 3: Runner ---
|
||||||
@@ -23,4 +24,6 @@ WORKDIR /app
|
|||||||
COPY --from=builder /app/build /app/build
|
COPY --from=builder /app/build /app/build
|
||||||
COPY --from=builder /app/.yarn ./.yarn
|
COPY --from=builder /app/.yarn ./.yarn
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["yarn", "start"] # Replace with your start command
|
CMD ["yarn", "start"] # Replace with your start command
|
||||||
|
|||||||
Reference in New Issue
Block a user