fix docker
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
5
.env.example
Normal file
5
.env.example
Normal file
@@ -0,0 +1,5 @@
|
||||
# Admin handle (bot will respond to admin commands from this user)
|
||||
ADMIN=syui.ai
|
||||
|
||||
# Bluesky host (optional, default: bsky.social)
|
||||
HOST=syu.is
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,3 +18,4 @@ pnpm-lock.yaml
|
||||
*/target/
|
||||
*/**/*.rs.bk
|
||||
.claude
|
||||
.config
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
FROM syui/aios
|
||||
|
||||
WORKDIR /root
|
||||
ADD ./test/entrypoint.sh .
|
||||
RUN chmod +x /root/entrypoint.sh
|
||||
COPY ./target/release/aibot /usr/sbin/aibot
|
||||
|
||||
ENTRYPOINT ["/root/entrypoint.sh"]
|
||||
WORKDIR /root
|
||||
|
||||
19
compose.yml
19
compose.yml
@@ -1,11 +1,16 @@
|
||||
services:
|
||||
aios:
|
||||
#image: syui/aios
|
||||
#command: aibot bot -a syui.syu.is
|
||||
bot:
|
||||
build:
|
||||
context: .
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
dockerfile: Dockerfile
|
||||
image: syui/aios:custom
|
||||
container_name: aibot
|
||||
restart: unless-stopped
|
||||
command: ["aibot", "bot", "-a", "${ADMIN:-syui.ai}"]
|
||||
volumes:
|
||||
- ./.config:/root/.config
|
||||
- ./.config/syui/ai/bot:/root/.config/syui/ai/bot
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/zsh
|
||||
|
||||
#aibot l $HANDLE -p $PASSWORD -s $HOST
|
||||
aibot bot -a $ADMIN
|
||||
Reference in New Issue
Block a user