Skip to content

Commit

Permalink
fix: modified docker file to use UID of user (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rchanger committed May 15, 2021
1 parent d7e16f6 commit 0e4c830
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/argocd-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
```
Expand Down
2 changes: 1 addition & 1 deletion integrations/argocd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 0e4c830

Please sign in to comment.