Add DB upload flow and Docker deployment setup

This commit is contained in:
2026-04-14 23:17:45 +08:00
parent 268e76bf0d
commit 6c3ff0e3d1
12 changed files with 1787 additions and 253 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=8787
COPY package*.json ./
RUN npm ci --omit=dev && npm cache clean --force
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/server ./server
COPY --from=builder /app/.env.example ./.env.example
EXPOSE 8787
CMD ["npm", "run", "start"]