File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ WORKDIR /app
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
1010COPY package.json ./
11- RUN cd / \
12- && ENV="$HOME/.shrc" SHELL=/bin/sh npx --yes get-pnpm \
11+ WORKDIR /
12+ RUN ENV="$HOME/.shrc" SHELL=/bin/sh npx --yes get-pnpm \
1313 "$(node --input-type=module --eval \
1414 'console.log((await import(" /app/package.json", { with: { type: " json" } })).default.devEngines.packageManager.version)')"
15+ WORKDIR /app
1516# Copy the content of the project to the machine
1617COPY . .
1718RUN yq --inplace --output-format=json '(.dependencies = .dependencies * (.devDependencies | to_entries | map(select(.key | test("^(typescript|@types/*|eslint-config-upleveled)$"))) | from_entries)) | (.devDependencies = {})' package.json
@@ -28,10 +29,11 @@ WORKDIR /app
2829RUN apk add bash postgresql cairo pango jpeg musl giflib pixman pangomm libjpeg-turbo freetype
2930# Install pnpm
3031COPY --from=builder /app/package.json ./
31- RUN cd / \
32- && ENV="$HOME/.shrc" SHELL=/bin/sh npx --yes get-pnpm \
32+ WORKDIR /
33+ RUN ENV="$HOME/.shrc" SHELL=/bin/sh npx --yes get-pnpm \
3334 "$(node --input-type=module --eval \
3435 'console.log((await import(" /app/package.json", { with: { type: " json" } })).default.devEngines.packageManager.version)')"
36+ WORKDIR /app
3537
3638# Copy built app
3739COPY --from=builder /app/.next ./.next
You can’t perform that action at this time.
0 commit comments