docker
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 34s

This commit is contained in:
2025-01-11 01:13:03 +05:00
parent cada3ce412
commit 09e7c410a8
7 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
FROM oven/bun:1.1.42-debian 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
FROM oven/bun:1.1.42-debian
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"]