Restored gitlab ci file and Dockerfile

This commit is contained in:
pascalyazid committed 2026-05-15 19:17:24 +02:00
1 parent caa23e4e3f
commit c9571043e7
2 files changed
+36

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
FROM oven/bun:alpine AS base
# Step 1. Install dependencies
FROM base AS deps
WORKDIR /app
COPY package.json bun.lock* ./
RUN bun install --frozen-lockfile
# Step 2. Rebuild the source code
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN bun run build
# Step 3. Production image
FROM base AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000
ENV PORT=3000
CMD ["bun", "server.js"]