deploy:修改部署脚本

This commit is contained in:
fanxb 2023-04-09 10:12:27 -04:00
parent 9a55460f11
commit 0b7f4a155c
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
FROM node:lts-buster-slim
WORKDIR /app
COPY ./openRenamerBackend /app
RUN chmod 777 -R /app
RUN chmod 777 -R /app && npm install -g pnpm typescript --registry https://registry.npmmirror.com
ENV PORT 80
CMD ["bash", "start.sh"]

View File

@ -13,4 +13,4 @@ rm -rf openRenamerBackend/node_modules
#docker build -t fleyx/open-renamer:$0 --push .
# 多平台打包并推送
docker buildx build -t fleyx/open-renamer:$1 --platform linux/amd64,linux/arm64 --push .
docker buildx build -t fleyx/open-renamer:latset --platform linux/amd64,linux/arm64 --push .
docker buildx build -t fleyx/open-renamer:latest --platform linux/amd64,linux/arm64 --push .

View File

@ -1 +1 @@
npm install -g pnpm typescript --registry https://registry.npmmirror.com && pnpm install --registry https://registry.npmmirror.com && tsc && node dist/index.js
pnpm install --registry https://registry.npmmirror.com && tsc && node dist/index.js