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
|
RUN apk add --no-cache git
|
||||||
|
|
||||||
COPY .git .git/
|
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
COPY build/ build/
|
COPY build/ build/
|
||||||
@ -14,7 +13,7 @@ COPY deploy/ deploy/
|
|||||||
COPY src/ src/
|
COPY src/ src/
|
||||||
COPY static/ static/
|
COPY static/ static/
|
||||||
COPY .babelrc .postcssrc.js ./
|
COPY .babelrc .postcssrc.js ./
|
||||||
RUN <<EOS
|
RUN --mount=type=bind,source=./.git,target=/app/.git <<EOS
|
||||||
set -ex
|
set -ex
|
||||||
yarn run build:dll
|
yarn run build:dll
|
||||||
yarn run build
|
yarn run build
|
||||||
|
Loading…
Reference in New Issue
Block a user