添加ssh
添加标签
添加仓库
添加构建
构建
命令
APP_NAME=enterprise
IMAGE_NAME=enterprise:latest
APP_PORT=8080
RUN_ENV=jenkins
cd ruoyi-admin
docker stop $APP_NAME || true
docker rm $APP_NAME || true
docker rmi $IMAGE_NAME || true
docker build -f Dockerfile1 -t $APP_NAME .
docker run --net host --privileged=true -d --restart=always -v /docker1/server/ftp/:/ruoyi/server/ftp/ -v /docker1/server/doc/:/ruoyi/server/doc/ -v /docker1/server/logs/:/ruoyi/server/logs/ -e "SPRING_PROFILES_ACTIVE=$RUN_ENV" --name $APP_NAME $IMAGE_NAME