From 69105d3d3c8f4513edb3db660646b0f535f02756 Mon Sep 17 00:00:00 2001 From: Thomas Bouve Date: Mon, 16 Aug 2021 09:16:24 +0200 Subject: [PATCH] Support running container as an arbitrary user of the root group (#138) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Support OpenShift containers. * Improve comment wording Co-authored-by: Sascha Ißbrücker --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5d8c5fb..5c0e219 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,8 @@ EXPOSE 9090 # Activate virtual env ENV VIRTUAL_ENV /opt/venv ENV PATH /opt/venv/bin:$PATH +# Allow running containers as an an arbitrary user in the root group, to support deployment scenarios like OpenShift, Podman +RUN ["chmod", "g+w", "."] # Run bootstrap logic RUN ["chmod", "+x", "./bootstrap.sh"] CMD ["./bootstrap.sh"]