From e19280151e572f9d9c925d180822c9a5b57ccc54 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 1 Aug 2019 13:54:52 -0700 Subject: [PATCH] Update Dockerfile and example Dockerfile Done to show non-root usage and more inbuilt utilities --- Dockerfile | 3 +++ examples/docker-checks/Dockerfile | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ad28b42..2e5b936 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,7 @@ RUN pip install -e . # Copy scripts COPY ./scripts /app/scripts +# Allow all users to execute minitor and scripts +RUN chmod -R 755 /app + ENTRYPOINT [ "python3", "-m", "minitor.main" ] diff --git a/examples/docker-checks/Dockerfile b/examples/docker-checks/Dockerfile index bdbdc68..637690d 100644 --- a/examples/docker-checks/Dockerfile +++ b/examples/docker-checks/Dockerfile @@ -1,3 +1,7 @@ -FROM minitor-dev +FROM minitor-dev-linux-amd64 -RUN apt-get update && apt-get install -y jq curl && apt-get clean +RUN apk add bash jq curl + +RUN addgroup -S minitor && adduser -S minitor -G minitor + +USER minitor