1
0
This commit is contained in:
syui 2024-02-21 19:09:17 +09:00
parent da451cc295
commit b0de0c9089
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
5 changed files with 13 additions and 12 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ scpt/json/
.config/ai/txt .config/ai/txt
.config/ai/png .config/ai/png
.ssh .ssh
.env

View File

@ -1,10 +1,8 @@
FROM syui/aios FROM syui/aios
ADD .ssh /root/.ssh ADD .ssh /root/.ssh
#USER root
#ADD .config /root/.config WORKDIR /root
#WORKDIR /root ADD ./test/entrypoint.sh .
# RUN chmod +x /root/entrypoint.sh
#ADD ./test/entrypoint.sh /
#RUN chmod +x /entrypoint.sh ENTRYPOINT ["/root/entrypoint.sh"]
#
#ENTRYPOINT ["/entrypoint.sh"]

View File

@ -1,9 +1,11 @@
services: services:
aios: aios:
#image: syui/aios #image: syui/aios
#command: ai bot -a syui.syu.is
build: build:
context: . context: .
restart: always restart: always
env_file:
- .env
volumes: volumes:
- ./.config:/root/.config - ./.config:/root/.config
command: ai bot

View File

@ -1,5 +1,5 @@
function cron() { function cron() {
t=`docker ps |grep "ai bot"` t=`docker ps |grep aios|grep Up`
if [ -z "$t" ];then if [ -z "$t" ];then
docker compose up -d docker compose up -d
fi fi

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/zsh
exec "$@" ai l $HANDLE -p $PASSWORD -s $HOST && ai bot -s $HOST