From 241b35f6ae612e38b7ac886ff22c7f50da4b1e3f Mon Sep 17 00:00:00 2001 From: Nils Jannasch Date: Fri, 7 Apr 2023 18:02:01 +0200 Subject: [PATCH] Model mounting changed --- Dockerfile | 2 +- docker-compose.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bcb18e43..091c2f1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index 1b53de2d..6adb6220 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,5 +8,6 @@ services: volumes: - ./data:/srv/data - ./data/.nomic:/root/.nomic/ + - ./models:/srv/models ports: - "4685:4685"