fix
This commit is contained in:
parent
da451cc295
commit
b0de0c9089
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ scpt/json/
|
||||
.config/ai/txt
|
||||
.config/ai/png
|
||||
.ssh
|
||||
.env
|
||||
|
14
Dockerfile
14
Dockerfile
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
#!/bin/zsh
|
||||
|
||||
exec "$@"
|
||||
ai l $HANDLE -p $PASSWORD -s $HOST && ai bot -s $HOST
|
||||
|
Loading…
Reference in New Issue
Block a user