From ac9ebe4160286c190a88f6dfd6a1cd8c8174c817 Mon Sep 17 00:00:00 2001 From: Aj - Thomas Date: Fri, 13 May 2022 18:14:08 +0200 Subject: [PATCH] Fix docker image volume mounting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #62 [🐛 Bug] Permission denied when writing configs --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5d13c04aa..95fbce619 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,10 @@ COPY /package.json ./package.json # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing -COPY --chown=nextjs:nodejs /.next/standalone ./ -COPY --chown=nextjs:nodejs /.next/static ./.next/static +COPY /.next/standalone ./ +COPY /.next/static ./.next/static -USER nextjs EXPOSE 7575 ENV PORT 7575 VOLUME /app/data/configs -CMD ["node", "server.js"] +CMD ["node", "server.js"] \ No newline at end of file