diff --git a/Dockerfile b/Dockerfile index 874282c..286971b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM node:lts-buster-slim WORKDIR /app -copy ./openRenamerBackend /app +COPY ./openRenamerBackend /app +RUN chmod 777 -R /app ENV PORT 80 CMD ["bash", "start.sh"] diff --git a/build.sh b/build.sh index b2dbff6..b4bb799 100644 --- a/build.sh +++ b/build.sh @@ -7,12 +7,7 @@ rm -rf openRenamerBackend/static/* touch openRenamerBackend/static/.gitkeep mv openRenamerFront/dist/* openRenamerBackend/static -# docker镜像打包 -if [ ! -n $0 ]; then - echo "请传入版本号参数,如:bash build.sh 0.8" - return 0 -fi # 单平台打包并推送 #docker build -t fleyx/open-renamer:$0 --push . # 多平台打包并推送 -docker buildx build -t fleyx/open-renamer:$0 --platform linux/amd64,linux/arm64 --push . \ No newline at end of file +docker buildx build -t fleyx/open-renamer:$1 --platform linux/amd64,linux/arm64 --push . \ No newline at end of file