Model mounting changed

This commit is contained in:
Nils Jannasch 2023-04-07 18:02:01 +02:00
parent d72d3347fd
commit 241b35f6ae
2 changed files with 2 additions and 1 deletions

View File

@ -10,5 +10,5 @@ COPY ./app.py /srv/app.py
COPY ./static /srv/static
COPY ./templates /srv/templates
COPY ./models /srv/models
# COPY ./models /srv/models # Mounting model is more efficient
CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "4685", "--db_path", "data/database.db"]

View File

@ -8,5 +8,6 @@ services:
volumes:
- ./data:/srv/data
- ./data/.nomic:/root/.nomic/
- ./models:/srv/models
ports:
- "4685:4685"