ARG VECTARA_CUSTOMER_ID ARG VECTARA_API_KEY ARG VECTARA_CORPUS_ID ARG VECTARA_AGENT_TYPE ARG VECTARA_AGENT_MAIN_LLM_PROVIDER ARG VECTARA_AGENT_TOOL_LLM_PROVIDE ARG OPENAI_API_KEY ARG QUERY_EXAMPLES ARG DEMO_NAME ARG SHORT_DESCRIPTION ARG EXTRA_INFO FROM python:3.10 ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 RUN useradd -m -u 1000 user USER user ENV PATH="/home/user/.local/bin:$PATH" WORKDIR /app # Used only for local testing with env variables # COPY --chown=user ./.env .env COPY --chown=user ./requirements.txt requirements.txt RUN pip3 install --no-cache-dir -r requirements.txt EXPOSE 8000 COPY --chown=user . /app CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]