fix: create uploads directory in dockerfile
This commit is contained in:
parent
eea3df283c
commit
a8f0ec02a7
1 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,9 @@ RUN adduser --system --uid 1001 nextjs
|
||||||
|
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
|
# Create the uploads directory and set ownership
|
||||||
|
RUN mkdir -p /app/uploads && chown -R nextjs:nodejs /app/uploads
|
||||||
|
|
||||||
# Automatically leverage output traces to reduce image size
|
# Automatically leverage output traces to reduce image size
|
||||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue