From 7393d9c2bcc6749ecdff5da6a02ead7bed112b64 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Fri, 28 Jun 2024 17:59:43 +0000 Subject: [PATCH] chore: Update Dockerfile and docker-compose.llm.yml for LLM models This commit updates the Dockerfile and docker-compose.llm.yml files to include the LLM Models directory. The Dockerfile now uses the `ADD .` command to copy the entire repository into the container at `/app`, and the docker-compose.llm.yml file has been modified to set the context to the `./LLM` directory. These changes ensure that the LLM Models directory is included in the Docker image and that the correct context is used for building the image. --- .dockerignore | 2 ++ LLM/.dockerignore | 1 + LLM/Dockerfile.tpl | 2 +- docker-compose.llm.yml | 4 ++-- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 LLM/.dockerignore diff --git a/.dockerignore b/.dockerignore index 7c9941b86e..937a4cfc5e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -56,3 +56,5 @@ settings.json GoSDK/tester/ +LLM/Models/* + diff --git a/LLM/.dockerignore b/LLM/.dockerignore new file mode 100644 index 0000000000..9907713a3e --- /dev/null +++ b/LLM/.dockerignore @@ -0,0 +1 @@ +Models/* \ No newline at end of file diff --git a/LLM/Dockerfile.tpl b/LLM/Dockerfile.tpl index cbd7fce0b9..5c2e652e7b 100644 --- a/LLM/Dockerfile.tpl +++ b/LLM/Dockerfile.tpl @@ -5,7 +5,7 @@ FROM huggingface/transformers-pytorch-gpu:latest WORKDIR /app # Copy the current directory contents into the container at /app -ADD ./LLM /app +ADD . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt diff --git a/docker-compose.llm.yml b/docker-compose.llm.yml index 4a95baf417..8fbbcf7325 100644 --- a/docker-compose.llm.yml +++ b/docker-compose.llm.yml @@ -14,8 +14,8 @@ services: - '8547:8547' build: network: host - context: . - dockerfile: ./LLM/Dockerfile + context: ./LLM + dockerfile: ./Dockerfile deploy: resources: reservations: