Skip to content

Commit

Permalink
Add start.sh to correct build stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur authored Jan 2, 2025
1 parent 3f462e7 commit 079afaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 @@ -24,6 +23,7 @@ RUN addgroup --system --gid 1001 nextjs && \
COPY --from=builder /gen3/config ./config
COPY --from=builder /gen3/public ./public
COPY --from=builder /gen3/.next/static ./.next/static
COPY ./start.sh ./

USER nextjs
ENV PORT=3000
Expand Down

0 comments on commit 079afaa

Please sign in to comment.