Skip to content

Commit

Permalink
use base image
Browse files Browse the repository at this point in the history
  • Loading branch information
luojiyin1987 committed Aug 2, 2024
1 parent d316c24 commit 14b8d14
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 @@ -16,9 +16,10 @@ FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm i --frozen-lockfile
RUN pnpm build

FROM gcr.io/distroless/nodejs18-debian12
FROM base

COPY --from=build /app/.next/standalone ./
COPY --from=build /app/public ./public
COPY --from=build /app/.next/static ./.next/static
EXPOSE 3000
CMD ["server.js"]

0 comments on commit 14b8d14

Please sign in to comment.