Skip to content

Commit

Permalink
update Docker file, add start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
craigrbarnes committed Dec 10, 2024
1 parent b5d66d6 commit 0f7a689
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ./
Expand Down

0 comments on commit 0f7a689

Please sign in to comment.