M0:照壁 BFF 骨架(Fastify 透明代理:鉴权/幂等/续传头透传、SSE 直通、HJ-3001 映射)及测试与镜像
This commit is contained in:
1 parent
f3058a64c3
commit
8d8d81e757
10 files changed
+2700
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# 照壁(BFF)构建与运行
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN npm install --no-audit --no-fund
|
||||
COPY tsconfig.json ./
|
||||
COPY src ./src
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-alpine
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN npm install --omit=dev --no-audit --no-fund
|
||||
COPY --from=builder /app/dist ./dist
|
||||
ENV BFF_PORT=3000
|
||||
EXPOSE 3000
|
||||
CMD ["node", "dist/server.js"]
|
||||
Reference in new issue
Block a user