From d639b54c23f75682151c1b208eca6e5c4a79ed38 Mon Sep 17 00:00:00 2001 From: craigrbarnes Date: Tue, 10 Dec 2024 16:48:03 -0500 Subject: [PATCH] update Docker file, set directory permissions --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a0c0eab..b2dcee5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,12 +22,11 @@ WORKDIR /gen3 RUN addgroup --system --gid 1001 nextjs && \ adduser --system --uid 1001 nextjs - -COPY --from=builder /gen3/config ./config -COPY --from=builder /gen3/public ./public -COPY --from=builder /gen3/.next/standalone ./ -COPY --from=builder /gen3/.next/static ./.next/static - USER nextjs +COPY --from=builder --chown=nextjs:nextjs /gen3/config ./config +COPY --from=builder --chown=nextjs:nextjs /gen3/public ./public +COPY --from=builder --chown=nextjs:nextjs /gen3/.next/standalone ./ +COPY --from=builder --chown=nextjs:nextjs /gen3/.next/static ./.next/static + ENV PORT=3000 CMD ["node", "server.js"]