2023-04-28 22:40:46 -07:00
|
|
|
FROM python:3.11-slim-bullseye
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2023-07-13 23:59:22 +01:00
|
|
|
&& apt-get install -y git cmake pkg-config libprotobuf-c-dev protobuf-compiler \
|
|
|
|
libprotobuf-dev libgoogle-perftools-dev libpq-dev build-essential cron curl \
|
|
|
|
supervisor \
|
2023-04-28 22:40:46 -07:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY ./requirements/default.txt /tmp/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
|
2023-07-13 23:59:22 +01:00
|
|
|
RUN playwright install
|
|
|
|
RUN playwright install-deps
|
2023-04-28 22:40:46 -07:00
|
|
|
|
|
|
|
WORKDIR /app
|
2023-04-29 12:36:20 -07:00
|
|
|
COPY ./danswer /app/danswer
|
2023-05-16 01:18:08 -07:00
|
|
|
COPY ./alembic /app/alembic
|
|
|
|
COPY ./alembic.ini /app/alembic.ini
|
2023-07-13 23:59:22 +01:00
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
2023-04-28 22:40:46 -07:00
|
|
|
|
2023-05-16 01:18:08 -07:00
|
|
|
ENV PYTHONPATH /app
|
2023-07-16 15:31:52 -07:00
|
|
|
|
|
|
|
# By default this container does nothing, it is used by api server and background which specify their own CMD
|
|
|
|
CMD ["tail", "-f", "/dev/null"]
|