Skip to content

Commit 0aefe5a

Browse files
committed
fix: Update Dockerfile to ensure proper copying of node_modules for CSS/styles
1 parent b674684 commit 0aefe5a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frontend/dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,16 @@ RUN adduser --system --uid 1001 nextjs
3333

3434
# Copy necessary files
3535
COPY --from=builder /app/public ./public
36+
37+
# Copy the standalone output
3638
COPY --from=builder /app/.next/standalone ./
39+
40+
# Copy static files
3741
COPY --from=builder /app/.next/static ./.next/static
3842

43+
# Copy node_modules for CSS/styles (important for HeroUI)
44+
COPY --from=builder /app/node_modules ./node_modules
45+
3946
USER nextjs
4047

4148
EXPOSE 3000

0 commit comments

Comments
 (0)