mirror of
https://github.com/QingdaoU/OnlineJudgeFE.git
synced 2024-12-29 16:01:51 +00:00
pref(ci): mount .git instead of copy
This commit is contained in:
parent
b6f67f0832
commit
7370cec5a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user