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/png
.ssh
.env

View File

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

View File

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

View File

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

View File

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