feat: add swagger

This commit is contained in:
2026-05-09 18:14:58 +03:00
parent 38bb15a928
commit a139777997

View File

@@ -14,17 +14,15 @@ COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/apps/api/node_modules ./apps/api/node_modules
COPY . .
RUN pnpm --filter @cryptowallet/api build
RUN pnpm prune --prod
FROM node:20-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production
RUN corepack enable
COPY --from=build /app/package.json /app/pnpm-lock.yaml /app/pnpm-workspace.yaml ./
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/apps/api/package.json ./apps/api/package.json
COPY --from=build /app/apps/api/node_modules ./apps/api/node_modules
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY apps/api/package.json apps/api/package.json
RUN pnpm --filter @cryptowallet/api install --frozen-lockfile --prod
COPY --from=build /app/apps/api/dist ./apps/api/dist
COPY --from=build /app/apps/api/swagger.json ./apps/api/swagger.json
EXPOSE 3001
CMD ["pnpm","--filter","@cryptowallet/api","start"]
CMD ["node","apps/api/dist/index.js"]