ci/cd for gitea, custom ollama url
Build and Push Docker Image / build-and-push (push) Failing after 1m38s

This commit is contained in:
thumapas committed 2026-09-29 09:22:34 +02:00
1 parent 484882af9b
commit 4512d04735
4 files changed
+1420 -1

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
# Stage 1: Build
FROM oven/bun:latest AS builder
WORKDIR /app
# Copy dependency files and install
COPY package.json bun.lockb* ./
RUN bun install
# Copy source code
COPY . .
# Build with the Bun Nitro preset
RUN NITRO_PRESET=bun bun run build
# Stage 2: Production
FROM oven/bun:latest
WORKDIR /app
# Copy only the built output from the builder stage
COPY --from=builder /app/.output ./.output
# Tell Nuxt to bind to all network interfaces inside the container
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
# Execute the server entrypoint
CMD ["bun", "run", ".output/server/index.mjs"]