mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-22 13:33:37 +00:00
Use BuildKit's cache mount.
This commit is contained in:
parent
6b4bd1a034
commit
38cc2d5190
@ -2,13 +2,12 @@ FROM node:lts-alpine AS build
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
|
||||
RUN yarn install --prefer-offline
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user