Got docker image to build
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Dependencies - exclude node_modules from being copied
|
# Dependencies - MUST exclude these
|
||||||
node_modules
|
node_modules
|
||||||
**/node_modules
|
**/node_modules
|
||||||
|
.pnp
|
||||||
|
.pnp.js
|
||||||
|
|
||||||
# Turbo
|
# Turbo
|
||||||
.turbo
|
.turbo
|
||||||
@@ -9,6 +11,7 @@ node_modules
|
|||||||
# Next.js build artifacts
|
# Next.js build artifacts
|
||||||
.next
|
.next
|
||||||
**/.next
|
**/.next
|
||||||
|
out
|
||||||
**/out
|
**/out
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
@@ -19,7 +22,6 @@ node_modules
|
|||||||
.env*.local
|
.env*.local
|
||||||
.vscode
|
.vscode
|
||||||
.idea
|
.idea
|
||||||
.cache
|
|
||||||
|
|
||||||
# Tests
|
# Tests
|
||||||
**/__tests__
|
**/__tests__
|
||||||
@@ -28,7 +30,9 @@ node_modules
|
|||||||
**/*.spec.ts
|
**/*.spec.ts
|
||||||
|
|
||||||
# Build artifacts
|
# Build artifacts
|
||||||
|
dist
|
||||||
**/dist
|
**/dist
|
||||||
|
build
|
||||||
**/build
|
**/build
|
||||||
|
|
||||||
# Convex local
|
# Convex local
|
||||||
@@ -37,3 +41,8 @@ packages/backend/.convex
|
|||||||
# OS
|
# OS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
docker
|
||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM oven/bun:alpine AS base
|
FROM oven/bun:alpine AS base
|
||||||
|
|
||||||
# Builder stage - do everything here
|
# Builder stage
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy all source code first
|
# Copy source code (node_modules excluded via .dockerignore)
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Install dependencies (this will create proper workspace structure)
|
# Install all dependencies
|
||||||
RUN bun install
|
RUN bun install
|
||||||
|
|
||||||
# Build the Next.js app
|
# Build with proper environment
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
ENV SKIP_ENV_VALIDATION=1
|
ENV NODE_ENV=production
|
||||||
RUN bun run build --filter=@gib/next
|
RUN bun run build --filter=@gib/next
|
||||||
|
|
||||||
# Runner stage
|
# Runner stage
|
||||||
|
|||||||
Reference in New Issue
Block a user