Use pnpm in Dockerfile.

This commit is contained in:
Kavin 2023-06-17 05:32:36 +01:00
parent 9b6504bd25
commit 6f40b88d48
No known key found for this signature in database
GPG Key ID: 6E4598CA5C92C41F

View File

@ -8,10 +8,12 @@ RUN --mount=type=cache,target=/var/cache/apk \
COPY . . COPY . .
RUN --mount=type=cache,target=/root/.cache/yarn \ RUN corepack enable && corepack prepare pnpm@latest --activate
RUN --mount=type=cache,target=/root/.local/share/pnpm \
--mount=type=cache,target=/app/node_modules \ --mount=type=cache,target=/app/node_modules \
yarn install --prefer-offline && \ pnpm install --prefer-offline && \
yarn build && ./localizefonts.sh pnpm build && ./localizefonts.sh
FROM nginx:alpine FROM nginx:alpine