File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,12 +3,11 @@ FROM node:lts-alpine AS builder
33ENV NODE_ENV production
44ENV PNPM_HOME="/pnpm"
55ENV PATH="$PNPM_HOME/bin:$PATH"
6- WORKDIR /app
6+ WORKDIR /
77# Install necessary tools
88RUN apk add --no-cache libc6-compat yq build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
99# Install pnpm
10- COPY package.json ./
11- WORKDIR /
10+ COPY package.json /app/
1211RUN ENV="$HOME/.shrc" SHELL=/bin/sh npx --yes get-pnpm \
1312 "$(node --input-type=module --eval \
1413 'console.log((await import(" /app/package.json", { with: { type: " json" } })).default.devEngines.packageManager.version)')"
@@ -24,12 +23,11 @@ FROM node:lts-alpine AS runner
2423ENV NODE_ENV production
2524ENV PNPM_HOME="/pnpm"
2625ENV PATH="$PNPM_HOME/bin:$PATH"
27- WORKDIR /app
26+ WORKDIR /
2827# Install necessary tools
2928RUN apk add bash postgresql cairo pango jpeg musl giflib pixman pangomm libjpeg-turbo freetype
3029# Install pnpm
31- COPY --from=builder /app/package.json ./
32- WORKDIR /
30+ COPY --from=builder /app/package.json /app/
3331RUN ENV="$HOME/.shrc" SHELL=/bin/sh npx --yes get-pnpm \
3432 "$(node --input-type=module --eval \
3533 'console.log((await import(" /app/package.json", { with: { type: " json" } })).default.devEngines.packageManager.version)')"
You can’t perform that action at this time.
0 commit comments