fix: pre-create /app/data directory in Dockerfile for nextjs user permissions
This commit is contained in:
1 parent
d2fb4be2b3
commit
661967e919
1 file changed
+2
@@ -45,6 +45,8 @@ COPY --from=builder --chown=nextjs:nodejs /app/src/db/migrations ./src/db/migrat
|
||||
COPY --from=deps --chown=nextjs:nodejs /app/node_modules/@libsql ./node_modules/@libsql
|
||||
COPY --from=deps --chown=nextjs:nodejs /app/node_modules/libsql ./node_modules/libsql
|
||||
|
||||
RUN mkdir -p /app/data && chown nextjs:nodejs /app/data
|
||||
|
||||
USER nextjs
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
Reference in new issue
Block a user