From 8e71403d55f8b31696421b7a761624e9abb4f0fa Mon Sep 17 00:00:00 2001 From: Syakyr Surani Date: Fri, 13 Sep 2024 06:47:24 +0000 Subject: [PATCH] fix: change PATH append to abs path ${HOME_DIR} in dockerfiles to resolve pathing issue with gunicorn --- .../docker/{{cookiecutter.repo_name}}-cpu.Dockerfile | 2 +- .../docker/{{cookiecutter.repo_name}}-gpu.Dockerfile | 2 +- .../cv/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile | 2 +- .../cv/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/{{cookiecutter.repo_name}}/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile b/{{cookiecutter.repo_name}}/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile index 21cd291..c3708fa 100644 --- a/{{cookiecutter.repo_name}}/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile +++ b/{{cookiecutter.repo_name}}/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile @@ -18,7 +18,7 @@ RUN apt update && \ ENV PYTHONIOENCODING utf8 ENV LANG "C.UTF-8" ENV LC_ALL "C.UTF-8" -ENV PATH "./.local/bin:${PATH}" +ENV PATH "${HOME_DIR}/.local/bin:${PATH}" USER ${NON_ROOT_USER} WORKDIR ${HOME_DIR} diff --git a/{{cookiecutter.repo_name}}/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile b/{{cookiecutter.repo_name}}/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile index 7d9ac44..f941432 100644 --- a/{{cookiecutter.repo_name}}/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile +++ b/{{cookiecutter.repo_name}}/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile @@ -26,7 +26,7 @@ ENV LC_ALL "C.UTF-8" ENV NVIDIA_VISIBLE_DEVICES all ENV NVIDIA_DRIVER_CAPABILITIES compute,utility ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:$LD_LIBRARY_PATH -ENV PATH "./.local/bin:${PATH}" +ENV PATH "${HOME_DIR}/.local/bin:${PATH}" USER ${NON_ROOT_USER} WORKDIR ${HOME_DIR} diff --git a/{{cookiecutter.repo_name}}/problem-templates/cv/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile b/{{cookiecutter.repo_name}}/problem-templates/cv/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile index d27235d..ad60ede 100644 --- a/{{cookiecutter.repo_name}}/problem-templates/cv/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile +++ b/{{cookiecutter.repo_name}}/problem-templates/cv/docker/{{cookiecutter.repo_name}}-cpu.Dockerfile @@ -18,7 +18,7 @@ RUN apt update && \ ENV PYTHONIOENCODING utf8 ENV LANG "C.UTF-8" ENV LC_ALL "C.UTF-8" -ENV PATH "./.local/bin:${PATH}" +ENV PATH "${HOME_DIR}/.local/bin:${PATH}" USER ${NON_ROOT_USER} WORKDIR ${HOME_DIR} diff --git a/{{cookiecutter.repo_name}}/problem-templates/cv/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile b/{{cookiecutter.repo_name}}/problem-templates/cv/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile index 1cac6b5..ccd3563 100644 --- a/{{cookiecutter.repo_name}}/problem-templates/cv/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile +++ b/{{cookiecutter.repo_name}}/problem-templates/cv/docker/{{cookiecutter.repo_name}}-gpu.Dockerfile @@ -26,7 +26,7 @@ ENV LC_ALL "C.UTF-8" ENV NVIDIA_VISIBLE_DEVICES all ENV NVIDIA_DRIVER_CAPABILITIES compute,utility ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:$LD_LIBRARY_PATH -ENV PATH "./.local/bin:${PATH}" +ENV PATH "${HOME_DIR}/.local/bin:${PATH}" USER ${NON_ROOT_USER} WORKDIR ${HOME_DIR}