# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

services:
  docsum:
    build:
      args:
        http_proxy: ${http_proxy}
        https_proxy: ${https_proxy}
        no_proxy: ${no_proxy}
      context: ../
      dockerfile: ./Dockerfile
    image: ${REGISTRY:-opea}/docsum:${TAG:-latest}
  docsum-gradio-ui:
    build:
      args:
        http_proxy: ${http_proxy}
        https_proxy: ${https_proxy}
      context: ../ui
      dockerfile: ./docker/Dockerfile.gradio
    extends: docsum
    image: ${REGISTRY:-opea}/docsum-gradio-ui:${TAG:-latest}
  docsum-ui:
    build:
      context: ../ui
      dockerfile: ./docker/Dockerfile
    extends: docsum
    image: ${REGISTRY:-opea}/docsum-ui:${TAG:-latest}
  docsum-react-ui:
    build:
      context: ../ui
      dockerfile: ./docker/Dockerfile.react
    extends: docsum
    image: ${REGISTRY:-opea}/docsum-react-ui:${TAG:-latest}
  whisper:
    build:
      args:
        http_proxy: ${http_proxy}
        https_proxy: ${https_proxy}
      context: GenAIComps
      dockerfile: comps/asr/src/integrations/dependency/whisper/Dockerfile
    extends: docsum
    image: ${REGISTRY:-opea}/whisper:${TAG:-latest}
  llm-docsum-tgi:
    build:
      context: GenAIComps
      dockerfile: comps/llms/summarization/tgi/langchain/Dockerfile
    extends: docsum
    image: ${REGISTRY:-opea}/llm-docsum-tgi:${TAG:-latest}
