pref(ci): mount .git instead of copy

This commit is contained in:
Mikucat 2024-02-04 16:54:53 +08:00
parent b6f67f0832
commit 7370cec5a8
No known key found for this signature in database
GPG Key ID: CE6B09A6F462E04D

View File

@ -5,7 +5,6 @@ WORKDIR /app
RUN apk add --no-cache git
COPY .git .git/
COPY package.json yarn.lock ./
RUN yarn install
COPY build/ build/
@ -14,7 +13,7 @@ COPY deploy/ deploy/
COPY src/ src/
COPY static/ static/
COPY .babelrc .postcssrc.js ./
RUN <<EOS
RUN --mount=type=bind,source=./.git,target=/app/.git <<EOS
set -ex
yarn run build:dll
yarn run build