deploy:在镜像启动时安装依赖

This commit is contained in:
fanxb 2022-07-18 10:48:49 +08:00
parent 21c761421a
commit 9d41087e26
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,5 @@ rm -rf openRenamerBackend/static/*
touch openRenamerBackend/static/.gitkeep touch openRenamerBackend/static/.gitkeep
mv openRenamerFront/dist/* openRenamerBackend/static mv openRenamerFront/dist/* openRenamerBackend/static
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerBackend:/opt/backend node:lts-buster-slim bash -c "cd /opt/backend && yarn config set registry https://registry.npm.taobao.org && yarn global add typescript && yarn && tsc"
# docker镜像打包 # docker镜像打包
# docker build -t fleyx/open-renamer:0.3 . # docker build -t fleyx/open-renamer:0.3 .

View File

@ -0,0 +1 @@
yarn config set registry https://registry.npm.taobao.org && yarn global add typescript && yarn && tsc && node dist/index.js