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>
This commit is contained in:
parent
6ee520f6d7
commit
1b640d4b12
@ -17,8 +17,7 @@ FROM nginx:alpine AS production
|
||||
# Copy custom nginx config
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Copy built assets from builder
|
||||
COPY --from=builder /app/.next/static /usr/share/nginx/html/_next/static
|
||||
# Copy static export (everything is in /app/out)
|
||||
COPY --from=builder /app/out /usr/share/nginx/html
|
||||
|
||||
# Expose port (internal only, no SSL)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user