fix: correct build output path and guard devtools plugin in production
This commit is contained in:
@@ -9,16 +9,17 @@ COPY . .
|
||||
|
||||
ARG STRAPI_URL=https://strapi.moshariri.com
|
||||
ENV STRAPI_URL=$STRAPI_URL
|
||||
ENV NODE_ENV=production
|
||||
|
||||
RUN bun run build
|
||||
RUN set -e && bun run build && echo "Build output:" && ls -la dist/server/
|
||||
|
||||
# Stage 2 — production runtime
|
||||
FROM node:22-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/.output ./.output
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD ["node", ".output/server/index.mjs"]
|
||||
CMD ["node", "dist/server/server.js"]
|
||||
|
||||
Reference in New Issue
Block a user