Build and Deploy / deploy (push) Failing after 6s
Build and Deploy / test-backend (push) Successful in 1m0s
Build and Deploy / lint-frontend (push) Successful in 13s
Build and Deploy / build-backend (push) Successful in 4s
Build and Deploy / build-frontend (push) Successful in 46s
30 lines
808 B
Docker
30 lines
808 B
Docker
FROM oven/bun:1 AS builder
|
|
WORKDIR /app
|
|
|
|
COPY bun.lock package.json ./
|
|
RUN bun install --frozen-lockfile
|
|
|
|
COPY . .
|
|
RUN bun run build
|
|
|
|
FROM node:22-slim AS runtime
|
|
WORKDIR /app
|
|
|
|
ENV NODE_ENV=production \
|
|
NEXT_TELEMETRY_DISABLED=1
|
|
|
|
COPY --from=builder /app/package.json /app/bun.lock \
|
|
/app/next.config.ts /app/tsconfig.json /app/next-env.d.ts /app/postcss.config.mjs \
|
|
./
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/.next ./.next
|
|
COPY --from=builder /app/public ./public
|
|
COPY --from=builder /app/i18n ./i18n
|
|
COPY --from=builder /app/messages ./messages
|
|
|
|
EXPOSE 3000
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD wget -q --spider http://localhost:3000/ || exit 1
|
|
|
|
CMD ["node_modules/.bin/next", "start", "-H", "0.0.0.0", "-p", "3000"] |