fix: correct build output path and guard devtools plugin in production

This commit is contained in:
2026-04-21 23:25:05 +02:00
parent 802e50378f
commit dcad455736
3 changed files with 13 additions and 5 deletions

View File

@@ -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"]