switch to node
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m29s

This commit is contained in:
Shihaam Abdul Rahman 2025-01-11 02:56:21 +05:00
parent d5c9253b04
commit 7bfdc10a5a
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -1,18 +1,21 @@
FROM oven/bun:1.1.42-debian AS builder
FROM node:20-slim AS builder
WORKDIR /var/www/html
ENV NEXT_TELEMETRY_DISABLED=1
COPY . .
RUN bun install --frozen-lockfile
RUN bunx prisma generate
RUN bun run build
RUN npm ci --legacy-peer-deps
RUN npx prisma generate
RUN npm run build
FROM oven/bun:1.1.42-debian
FROM node:20-slim
WORKDIR /var/www/html
COPY --from=builder /var/www/html/package.json ./
COPY --from=builder /var/www/html/node_modules ./node_modules
COPY --from=builder /var/www/html/.next ./.next
COPY --from=builder /var/www/html/public ./public
COPY --from=builder /var/www/html/prisma ./prisma
VOLUME /var/www/html
CMD ["bun", "start"]
CMD ["npm", "start"]