Got docker image to build
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM oven/bun:alpine AS base
|
||||
|
||||
# Builder stage - do everything here
|
||||
# Builder stage
|
||||
FROM base AS builder
|
||||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
|
||||
# Copy all source code first
|
||||
# Copy source code (node_modules excluded via .dockerignore)
|
||||
COPY . .
|
||||
|
||||
# Install dependencies (this will create proper workspace structure)
|
||||
# Install all dependencies
|
||||
RUN bun install
|
||||
|
||||
# Build the Next.js app
|
||||
# Build with proper environment
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV SKIP_ENV_VALIDATION=1
|
||||
ENV NODE_ENV=production
|
||||
RUN bun run build --filter=@gib/next
|
||||
|
||||
# Runner stage
|
||||
|
||||
Reference in New Issue
Block a user