diff --git a/Dockerfile b/Dockerfile index 89c6ec0..9508dd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ RUN npm ci COPY ./src ./src COPY ./public ./public COPY ./config ./config -COPY ./start.sh ./ RUN npm install @swc/core @napi-rs/magic-string && \ npm run build @@ -21,10 +20,12 @@ ENV PORT=3000 RUN addgroup --system --gid 1001 nextjs && \ adduser --system --uid 1001 nextjs +COPY --from=builder /gen3/node_modules ./node_modules 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 +COPY --from=builder --chown=nextjs:nextjs /gen3/.next ./.next +COPY --from=builder /gen3/start.sh /gen3/package.json ./ USER nextjs ENV PORT=3000