1
0

update docker

This commit is contained in:
2025-07-20 12:21:09 +09:00
parent 9222892c61
commit 35743f4260
3 changed files with 6 additions and 11 deletions

View File

@@ -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"]

View File

@@ -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

View File

@@ -1,7 +1,7 @@
services:
api:
ports:
- 8080:8080
- 8188:8080
build:
context: .
restart: always