Fix images cache EACCES error
All checks were successful
Publish Docker Image / Publish Docker Image (push) Successful in 4s
All checks were successful
Publish Docker Image / Publish Docker Image (push) Successful in 4s
This commit is contained in:
@@ -34,6 +34,7 @@ COPY --from=builder /app/node_modules ./node_modules
|
|||||||
COPY --from=builder /app/package.json ./package.json
|
COPY --from=builder /app/package.json ./package.json
|
||||||
|
|
||||||
RUN mkdir -p /app/.yarn && chown -R nextjs:nodejs /app/.yarn
|
RUN mkdir -p /app/.yarn && chown -R nextjs:nodejs /app/.yarn
|
||||||
|
RUN mkdir -p /app/.next/cache/images && chown -R nextjs:nodejs /app/.next/cache/images
|
||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user