mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Use BuildKit's cache mount.
This commit is contained in:
parent
6b4bd1a034
commit
38cc2d5190
1 changed files with 4 additions and 5 deletions
|
@ -2,13 +2,12 @@ FROM node:lts-alpine AS build
|
||||||
|
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
|
||||||
|
|
||||||
RUN yarn install --prefer-offline
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css
|
RUN --mount=type=cache,target=/root/.cache/yarn \
|
||||||
|
--mount=type=cache,target=/app/node_modules \
|
||||||
|
yarn install --prefer-offline && \
|
||||||
|
yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue