tsadoq/unofficial-haystack-documentation-agent
2
1# app/Dockerfile2 3FROM python:3.10-slim-bookworm4 5WORKDIR /app6 7COPY ./requirements.txt /app/requirements.txt8 9RUN apt-get update && apt-get install -y \10 build-essential \11 curl \12 software-properties-common \13 git \14 && rm -rf /var/lib/apt/lists/*15 16RUN pip3 install --no-cache-dir -r /app/requirements.txt17 18RUN --mount=type=secret,id=SERPERDEV_API_KEY,mode=0444,required=true19RUN --mount=type=secret,id=OPENAI_KEY,mode=0444,required=true20 21 22# User23RUN useradd -m -u 1000 user24USER user25ENV HOME /home/user26ENV PATH $HOME/.local/bin:$PATH27 28WORKDIR $HOME29RUN mkdir app30WORKDIR $HOME/app31COPY . $HOME/app32 33EXPOSE 850134CMD streamlit run app.py \35 --server.headless true \36 --server.enableCORS false \37 --server.enableXsrfProtection false \38 --server.fileWatcherType none39 