feat: 后端搜索接口开发

This commit is contained in:
2025-05-11 09:41:48 +08:00
parent 7350f43a72
commit 9b2584d32c
20 changed files with 12571 additions and 6790 deletions
+28
View File
@@ -0,0 +1,28 @@
# Build stage
FROM node:20-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Production stage
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/prisma ./prisma
RUN npm install --production
ENV NODE_ENV=production
ENV PORT=4000
EXPOSE 4000
CMD ["node", "dist/index.js"]