Fix docker image volume mounting
Fixes #62 [🐛 Bug] Permission denied when writing configs
This commit is contained in:
@@ -10,10 +10,9 @@ COPY /package.json ./package.json
|
|||||||
|
|
||||||
# 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 --chown=nextjs:nodejs /.next/standalone ./
|
COPY /.next/standalone ./
|
||||||
COPY --chown=nextjs:nodejs /.next/static ./.next/static
|
COPY /.next/static ./.next/static
|
||||||
|
|
||||||
USER nextjs
|
|
||||||
EXPOSE 7575
|
EXPOSE 7575
|
||||||
ENV PORT 7575
|
ENV PORT 7575
|
||||||
VOLUME /app/data/configs
|
VOLUME /app/data/configs
|
||||||
|
|||||||
Reference in New Issue
Block a user