From c2395ef94141c16a6a59574ac0cf5eed1703f60b Mon Sep 17 00:00:00 2001 From: Vishesh Arora <> Date: Tue, 6 Feb 2024 18:34:36 +0800 Subject: [PATCH] Make dockerfiles work on heroku --- backend/Dockerfile | 2 +- database/Dockerfile | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 58bb65b..6625ed8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -8,5 +8,5 @@ EXPOSE 8080 RUN pip install -r requirements.txt -CMD ["uvicorn", "main:app", "--port", "8080"] +CMD uvicorn main:app --port $PORT diff --git a/database/Dockerfile b/database/Dockerfile index adde14c..38d5d4b 100644 --- a/database/Dockerfile +++ b/database/Dockerfile @@ -1,3 +1,4 @@ -FROM ghcr.io/chroma-core/chroma:latest +FROM --platform=linux/amd64 ghcr.io/chroma-core/chroma:latest EXPOSE 8000 -VOLUME [ "/storage" ] \ No newline at end of file +VOLUME [ "/storage" ] +CMD uvicorn chromadb.app:app --reload --workers 1 --host 0.0.0.0 --port $PORT --log-config chromadb/log_config.yml --timeout-keep-alive 30 \ No newline at end of file