From 0f7a689a48fdd009e3c17b909e4605b2c702ddb8 Mon Sep 17 00:00:00 2001 From: craigrbarnes Date: Tue, 10 Dec 2024 18:38:34 -0500 Subject: [PATCH] update Docker file, add start.sh --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6fabdc3..7266bc2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ARG NEXT_PUBLIC_PORTAL_BASENAME WORKDIR /gen3 -COPY ./package.json ./package-lock.json ./next.config.js ./tsconfig.json ./.env.development ./tailwind.config.js ./postcss.config.js ./ +COPY ./package.json ./package-lock.json ./next.config.js ./tsconfig.json ./.env.development ./tailwind.config.js ./postcss.config.js ./start.sh ./ RUN npm ci COPY ./src ./src COPY ./public ./public @@ -23,6 +23,7 @@ WORKDIR /gen3 RUN addgroup --system --gid 1001 nextjs && \ adduser --system --uid 1001 nextjs USER nextjs +COPY --from=builder --chown=nextjs:nextjs /gen3/start.sh ./ 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 ./