Files
gooseek/services/web-svc/Dockerfile
home 06fe57c765 feat: Go backend, enhanced search, new widgets, Docker deploy
Major changes:
- Add Go backend (backend/) with microservices architecture
- Enhanced master-agents-svc: reranker, content-classifier, stealth-crawler,
  proxy-manager, media-search, fastClassifier, language detection
- New web-svc widgets: KnowledgeCard, ProductCard, ProfileCard, VideoCard,
  UnifiedCard, CardGallery, InlineImageGallery, SourcesPanel, RelatedQuestions
- Improved discover-svc with discover-db integration
- Docker deployment improvements (Caddyfile, vendor.sh, BUILD.md)
- Library-svc: project_id schema migration
- Remove deprecated finance-svc and travel-svc
- Localization improvements across services

Made-with: Cursor
2026-02-27 04:15:32 +03:00

28 lines
953 B
Docker

# syntax=docker/dockerfile:1
# web-svc — Next.js UI, standalone output
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
COPY services ./services
COPY --from=npm-cache / /tmp/npm-cache
RUN npm ci --cache /tmp/npm-cache
ENV NEXT_TELEMETRY_DISABLED=1
ARG API_GATEWAY_URL=http://api-gateway.gooseek:3015
ENV API_GATEWAY_URL=${API_GATEWAY_URL}
RUN npm run build -w web-svc
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/services/web-svc/public ./services/web-svc/public
COPY --from=builder --chown=nextjs:nodejs /app/services/web-svc/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/services/web-svc/.next/static ./services/web-svc/.next/static
USER nextjs
EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["node", "services/web-svc/server.js"]