refact & update new model

This commit is contained in:
Sakurasan
2024-09-13 21:32:10 +08:00
parent c11824f5aa
commit 7fd82b43f4
21 changed files with 1094 additions and 975 deletions

View File

@@ -1,4 +1,4 @@
FROM node:18.12.1-alpine3.16 AS frontend
FROM node:20-alpine AS frontend
WORKDIR /frontend-build
COPY ./web/ .
RUN npm install && npm run build && rm -rf node_modules

View File

@@ -1,10 +1,24 @@
version: '3.7'
services:
services:
opencatd:
image: mirrors2/opencatd-open
container_name: opencatd-open
container_name: opencatd-open
restart: unless-stopped
#network_mode: host
ports:
- 80:80
volumes:
- /etc/opencatd:/app/db
- $PWD/db:/app/db
logging:
# driver: "json-file"
options:
max-size: 10m
max-file: 3
# environment:
# Vertex: |
# {
# "type": "service_account",
# "universe_domain": "googleapis.com"
# }