Skip to content

Commit f199a4a

Browse files
authored
fix: fix next public directory does not always exist (#26)
1 parent 813667e commit f199a4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/nextjs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ RUN update-ca-certificates 2>/dev/null || true
155155
RUN addgroup --system nonroot && adduser --system --ingroup nonroot nonroot
156156
RUN chown -R nonroot:nonroot /app
157157
158-
COPY --from=builder --chown=nonroot:nonroot /app/public ./public
158+
COPY --from=builder --chown=nonroot:nonroot /app/public* ./public
159159
160160
# Set the correct permission for prerender cache
161161
RUN mkdir .next
@@ -215,7 +215,7 @@ RUN addgroup --system nonroot && adduser --system --ingroup nonroot nonroot
215215
RUN chown -R nonroot:nonroot /app
216216
217217
COPY --from=builder --chown=nonroot:nonroot /app/next.config.* ./
218-
COPY --from=builder --chown=nonroot:nonroot /app/public ./public
218+
COPY --from=builder --chown=nonroot:nonroot /app/public* ./public
219219
COPY --from=builder --chown=nonroot:nonroot /app/.next ./.next
220220
COPY --from=builder --chown=nonroot:nonroot /app/node_modules ./node_modules
221221

0 commit comments

Comments
 (0)