forked from tgbot-collection/YYeTsBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 744 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
cp .env YYeTsFE/.env
# docker buildx create --use --name mybuilder
docker buildx build --platform=linux/amd64,linux/arm64 -t bennythink/yyetsbot . --push
prod:
make update
cp .env YYeTsFE/.env
docker build -t bennythink/yyetsbot .