update docker
This commit is contained in:
14
Dockerfile
14
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"]
|
||||
|
@@ -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
|
||||
|
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
api:
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 8188:8080
|
||||
build:
|
||||
context: .
|
||||
restart: always
|
||||
|
Reference in New Issue
Block a user