From 35743f42606e04d379bd2eeb1f033c3e6f2e0089 Mon Sep 17 00:00:00 2001 From: syui Date: Sun, 20 Jul 2025 12:21:09 +0900 Subject: [PATCH] update docker --- Dockerfile | 14 ++++---------- build.zsh | 1 + compose.yml | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b428ce..c4f2c4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,8 @@ -FROM syui/aios +FROM archlinux -RUN pacman -Syu --noconfirm go -WORKDIR /app -RUN git clone https://git.syui.ai/ai/api tmp - -WORKDIR /app/tmp -RUN go build -RUN mv api /app/api - -#ADD ./app /app +#RUN pacman -Syu --noconfirm WORKDIR /app +COPY api /app/ + ENTRYPOINT ["/app/api"] diff --git a/build.zsh b/build.zsh index e9007d0..e43a59d 100755 --- a/build.zsh +++ b/build.zsh @@ -20,6 +20,7 @@ case $OSTYPE in esac cp -rf $d/tmp/ogent ent/ +go build #f=~/.config/ai/api_card.json #PASS=`cat $f|jq -r .password` TOKEN=`cat $f|jq -r .token` go build #PASS=`cat $f|jq -r .password` TOKEN=`cat $f|jq -r .token` go run -mod=mod main.go diff --git a/compose.yml b/compose.yml index a16ec3c..36204a6 100644 --- a/compose.yml +++ b/compose.yml @@ -1,7 +1,7 @@ services: api: ports: - - 8080:8080 + - 8188:8080 build: context: . restart: always