deploy:修改部署脚本
This commit is contained in:
parent
9a55460f11
commit
0b7f4a155c
@ -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"]
|
||||
|
||||
|
2
build.sh
2
build.sh
@ -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 .
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user