Compare commits

..

2 Commits

Author SHA1 Message Date
Chris Anderson
1b640d4b12 Fix Docker build - CSS not loading
- Fixed Dockerfile to only copy from /app/out (static export)
- Removed redundant .next/static copy
- Rebuilt container from scratch
- Verified CSS is now loading correctly

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-24 11:15:48 +02:00
Alex Chen
6ee520f6d7 fix: update Dockerfile to use npm instead of pnpm
- Changed from pnpm to npm for Docker builds
- Fixed build cache issue that was serving stale content
- Verified correct content is now deployed

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-24 10:53:12 +02:00
3 changed files with 6710 additions and 8 deletions

View File

@ -3,16 +3,13 @@ FROM node:20-alpine AS builder
WORKDIR /app WORKDIR /app
# Install pnpm
RUN npm install -g pnpm@9
# Install dependencies # Install dependencies
COPY package.json pnpm-lock.yaml ./ COPY package.json package-lock.json ./
RUN pnpm install --frozen-lockfile RUN npm ci
# Build the application # Build the application
COPY . . COPY . .
RUN pnpm build RUN npm run build
# Stage 2: Production # Stage 2: Production
FROM nginx:alpine AS production FROM nginx:alpine AS production
@ -20,8 +17,7 @@ FROM nginx:alpine AS production
# Copy custom nginx config # Copy custom nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy built assets from builder # Copy static export (everything is in /app/out)
COPY --from=builder /app/.next/static /usr/share/nginx/html/_next/static
COPY --from=builder /app/out /usr/share/nginx/html COPY --from=builder /app/out /usr/share/nginx/html
# Expose port (internal only, no SSL) # Expose port (internal only, no SSL)

6703
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

3
pnpm-workspace.yaml Normal file
View File

@ -0,0 +1,3 @@
allowBuilds:
sharp: set this to true or false
unrs-resolver: set this to true or false