fix: 编译时修改版本

This commit is contained in:
吴小白 2022-09-29 16:34:57 +08:00 committed by huailei
parent 5cd4e5b40b
commit a6222f87d2

View File

@ -14,7 +14,8 @@ RUN set -ex \
ADD . /data
RUN RUN --mount=type=cache,target=/root/.cache/yarn \
yarn install \
sed -i "s@Version <strong>.*</strong>@Version <strong>${VERSION}</strong>@g" src/layout/components/Footer/index.vue \
&& yarn install \
&& yarn build
FROM nginx:alpine