forked from onyx-dot-app/onyx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged background and api-server images
- Loading branch information
1 parent
c6bcd5e
commit f27364a
Showing
5 changed files
with
9 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
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 curl \ | ||
&& 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 \ | ||
&& 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 | ||
COPY ./alembic /app/alembic | ||
COPY ./alembic.ini /app/alembic.ini | ||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
|
||
ENV PYTHONPATH /app | ||
CMD ["/bin/sh", "-c", "alembic upgrade head && echo \"Starting Danswer Api Server\" && uvicorn danswer.main:app --host 0.0.0.0 --port 8080"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters