diff --git a/.gitignore b/.gitignore index b5feb04..aedb1df 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ t .env *.json *.sqlite -#*.zsh tmp/card_limit.zsh tmp/card_day.zsh tmp/card_delete.zsh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7b428ce --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM syui/aios + +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 + +WORKDIR /app +ENTRYPOINT ["/app/api"] diff --git a/app/data/keep b/app/data/keep new file mode 100644 index 0000000..e69de29 diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..a16ec3c --- /dev/null +++ b/compose.yml @@ -0,0 +1,11 @@ +services: + api: + ports: + - 8080:8080 + build: + context: . + restart: always + env_file: + - .env + volumes: + - ./app/data:/app/data