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..657816b 100755 --- a/build.zsh +++ b/build.zsh @@ -20,6 +20,6 @@ case $OSTYPE in esac cp -rf $d/tmp/ogent ent/ -#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 +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..ca4d8ac 100644 --- a/compose.yml +++ b/compose.yml @@ -1,11 +1,9 @@ services: api: ports: - - 8080:8080 + - 8188:8080 build: context: . restart: always - env_file: - - .env volumes: - ./app/data:/app/data