ci/cd: configure automated Docker builds on Gitea and Portainer deployment
Build and Deploy / build-and-push (push) Successful in 2m39s

This commit is contained in:
pascalyazid committed 2026-09-28 20:40:17 +02:00
1 parent 7a84480d70
commit eb29528aad
11 files changed
+82 -25

No files matched your search

+10 -1
View File
@@ -11,6 +11,15 @@ FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# --- MUST BE HERE IN THE BUILDER STAGE ---
ARG NEXT_PUBLIC_SUPABASE_URL
ARG NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY
ENV NEXT_PUBLIC_SUPABASE_URL=$NEXT_PUBLIC_SUPABASE_URL
ENV NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=$NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY
# -----------------------------------------
RUN bun run build
# Step 3. Production image
@@ -24,4 +33,4 @@ COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000
ENV PORT=3000
CMD ["bun", "server.js"]
CMD ["bun", "server.js"]