Added and updated config for CD with portainer and GitOps

This commit is contained in:
pascalyazid committed 2026-05-04 16:28:52 +00:00
1 parent 3743d17705
commit 35a6863745
4 files changed
+57 -31

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