Skip to content

Commit

Permalink
Merge pull request #9 from adidoesnt/development
Browse files Browse the repository at this point in the history
Make dockerfiles work on heroku
  • Loading branch information
adidoesnt authored Feb 6, 2024
2 parents d30d661 + c2395ef commit 556a28c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ EXPOSE 8080

RUN pip install -r requirements.txt

CMD ["uvicorn", "main:app", "--port", "8080"]
CMD uvicorn main:app --port $PORT

5 changes: 3 additions & 2 deletions database/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
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

0 comments on commit 556a28c

Please sign in to comment.