#!/bin/bash

echo "开始打包"

rm -rf output/*
mkdir -p output
mvn clean package -Dmaven.test.skip=true
cp ruoyi-admin/target/ruoyi-admin.jar ./output
cp Dockerfile ./output
cp docker-compose.yml ./output


echo "打包完成"
# docker build --no-cache --platform linux/amd64 -t yifei/admin:1.0 .
# docker run -itd --restart=always --name yifei -p 8080:8080 yifei/admin:1.0