Skip to content

How Do I Persist Cache With Docker? #36935

Closed Answered by darrylmorley
darrylmorley asked this question in Help
Discussion options

You must be logged in to vote

I found the answer, this is what I needed:

RUN mkdir -p /app/.next/cache && chown nextjs:nodejs /app/.next/cache
VOLUME ["/app/.next/cache"]

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@deadcoder0904
Comment options

Answer selected by darrylmorley
Comment options

You must be logged in to vote
1 reply
@darrylmorley
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants