From 80ab98361e2f91165a8b9c744f15689b0c6dafdf Mon Sep 17 00:00:00 2001 From: SYusupov Date: Mon, 16 Sep 2024 19:18:18 +0200 Subject: [PATCH] Allowing access to the model_files --- Dockerfile | 2 ++ compose.yaml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ee2088d..9c5a656 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,8 @@ ENV PYTHONPATH=/app # # Copy the source code into the container. # COPY ./app /app # loaded with containers COPY ./model_files /model_files +# Ensure that the model file is readable by all users +RUN chmod -R 755 /model_files # Create a non-root user called appuser RUN useradd -m appuser diff --git a/compose.yaml b/compose.yaml index 7027db7..b0f1177 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,5 +1,3 @@ -version: "3.9" - services: server: # build: .