From 0e4c830d55bf2b2eeedafc9bae595c40dafa71fe Mon Sep 17 00:00:00 2001 From: Suvarna Rokade Date: Sat, 15 May 2021 13:17:05 +0530 Subject: [PATCH] fix: modified docker file to use UID of user (#773) --- build/Dockerfile | 2 +- docs/integrations/argocd-integration.md | 2 +- integrations/argocd/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index c0c16240e..7457b30ad 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -32,7 +32,7 @@ RUN mkdir -p /home/terrascan/.ssh /home/terrascan/bin && \ chown -R terrascan:terrascan /home/terrascan # run as non root user -USER terrascan +USER 101 ENV PATH /go/bin:$PATH diff --git a/docs/integrations/argocd-integration.md b/docs/integrations/argocd-integration.md index 7f5045b0a..a30237765 100644 --- a/docs/integrations/argocd-integration.md +++ b/docs/integrations/argocd-integration.md @@ -341,7 +341,7 @@ RUN addgroup --gid 101 terrascan && \ chown -R terrascan:terrascan bin && \ chmod u+x bin/terrascan-remote-scan.sh -USER terrascan +USER 101 CMD ["sh"] ``` diff --git a/integrations/argocd/Dockerfile b/integrations/argocd/Dockerfile index e7c1f631b..801d19d6c 100644 --- a/integrations/argocd/Dockerfile +++ b/integrations/argocd/Dockerfile @@ -17,6 +17,6 @@ RUN addgroup --gid 101 terrascan && \ chown -R terrascan:terrascan bin && \ chmod u+x bin/terrascan-remote-scan.sh -USER terrascan +USER 101 CMD ["sh"] \ No newline at end of file