mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-21 21:17:26 +00:00
Use pnpm in Dockerfile.
This commit is contained in:
parent
9b6504bd25
commit
6f40b88d48
@ -8,10 +8,12 @@ RUN --mount=type=cache,target=/var/cache/apk \
|
||||
|
||||
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 \
|
||||
yarn install --prefer-offline && \
|
||||
yarn build && ./localizefonts.sh
|
||||
pnpm install --prefer-offline && \
|
||||
pnpm build && ./localizefonts.sh
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user