Skip to content

Commit

Permalink
add docker fixes to root repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn O'Connor committed Jan 6, 2025
1 parent e6c7543 commit 727da44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 727da44

Please sign in to comment.