danswer/backend/Dockerfile.background
2023-05-12 16:52:04 -07:00

17 lines
524 B
Docker

FROM python:3.11-slim-bullseye
RUN apt-get update \
&& apt-get install -y git cmake pkg-config libprotobuf-c-dev protobuf-compiler libprotobuf-dev libgoogle-perftools-dev libpq-dev build-essential cron \
&& rm -rf /var/lib/apt/lists/*
COPY ./requirements/default.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
RUN playwright install
RUN playwright install-deps
WORKDIR /app
COPY ./danswer /app/danswer
ENV PYTHONPATH .
CMD ["python3", "danswer/background/update.py"]