Skip to content

Commit

Permalink
use google distroless nodejs18
Browse files Browse the repository at this point in the history
  • Loading branch information
luojiyin1987 committed Aug 2, 2024
1 parent 10186b7 commit 1f2d647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm i --frozen-lockfile
RUN pnpm build

FROM base
FROM gcr.io/distroless/nodejs18-debian12
COPY --from=prod-deps /app/node_modules ./node_modules
COPY --from=build /app/public ./public
COPY --from=build /app/.next ./.next
EXPOSE 3000
CMD ["npm", "start"]
CMD ["./node_modules/next/dist/bin/next", "start"]

1 comment on commit 1f2d647

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for oss-toolbox ready!

✅ Preview
https://oss-toolbox-cnmrhm0cn-techquerys-projects.vercel.app

Built with commit 1f2d647.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.