Skip to content

Commit

Permalink
build(docker): use node:alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Jun 3, 2024
1 parent 36f3717 commit efe36c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21-alpine3.18 AS base
FROM node:alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
Expand All @@ -12,9 +12,6 @@ FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run build




FROM base
ENV NODE_ENV=production
COPY --from=prod-deps /app/node_modules /app/node_modules
Expand Down

0 comments on commit efe36c0

Please sign in to comment.