diff --git a/Dockerfile b/Dockerfile index 13daf5f..c4f2a75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,6 @@ COPY . /app RUN pip install -r requirements.txt -RUN chmod +x /app/entrypoint.sh +RUN chmod +x /app/script/docker/entrypoint.sh -ENTRYPOINT ["/app/entrypoint.sh"] +ENTRYPOINT ["/app/script/docker/entrypoint.sh"] diff --git a/script/docker/compose.yaml b/script/docker/compose.yaml index c4e4a20..05f584a 100644 --- a/script/docker/compose.yaml +++ b/script/docker/compose.yaml @@ -16,14 +16,14 @@ services: image: ollama/ollama:0.5.1 volumes: - ./ollama:/root/.ollama - - ./ollama-entrypoint.sh:/entrypoint.sh + - ./ollama-entrypoint.sh:./entrypoint.sh container_name: ollama pull_policy: always tty: true restart: always entrypoint: - /usr/bin/bash - - /entrypoint.sh + - /script/docker/entrypoint.sh expose: - 11434 healthcheck: diff --git a/entrypoint.sh b/script/docker/entrypoint.sh similarity index 100% rename from entrypoint.sh rename to script/docker/entrypoint.sh