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
bf22dbcaf7
commit
7b0e7012b1
@ -17,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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user