mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
42 lines
824 B
Makefile
42 lines
824 B
Makefile
|
|
default:
|
|
make dev
|
|
|
|
update:
|
|
git pull
|
|
git submodule update --remote
|
|
|
|
dev:
|
|
make update
|
|
docker build --build-arg env=dev -t bennythink/yyetsbot .
|
|
docker-compose up -d
|
|
|
|
clean:
|
|
docker rmi bennythink/yyetsbot:latest
|
|
rm -rf YYeTsFE/build
|
|
rm -rf YYeTsFE/dist
|
|
|
|
static:
|
|
make clean
|
|
cd yyetsweb
|
|
pyinstaller -F server.spec
|
|
cp dists/server ./
|
|
cd migration
|
|
python3 convert_to_sqlite.py
|
|
mv yyets.sqlite ../
|
|
|
|
zip:
|
|
zip -r yyetsweb-one-key-$(date +"%F %T").zip yyetsweb
|
|
|
|
docker:
|
|
# production configuration
|
|
rm -f YYeTsFE/.env
|
|
cp .env YYeTsFE/.env
|
|
# docker buildx create --use --name mybuilder
|
|
docker buildx build --platform=linux/amd64,linux/arm64 -t bennythink/yyetsbot . --push
|
|
|
|
local:
|
|
make update
|
|
docker build --build-arg env=dev \
|
|
--build-arg http_proxy=http://192.168.7.67:23456 \
|
|
-t bennythink/yyetsbot .
|