feat: init proj

This commit is contained in:
2026-03-31 13:11:54 +08:00
commit 8f75ea24d6
38 changed files with 6826 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM node:22-slim AS frontend
WORKDIR /app/web
COPY web/package.json ./
RUN npm install
COPY web/ ./
RUN npm run build
FROM node:22-slim AS production
WORKDIR /app
COPY server/package.json ./server/
WORKDIR /app/server
RUN npm install --omit=dev
COPY server/ ./
COPY --from=frontend /app/web/dist /app/web/dist
EXPOSE 3456
CMD ["npx", "tsx", "src/index.ts"]