Skip to content

Commit

Permalink
fix permission issues in creating webhook mode logs file persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
devang-gaur committed Oct 7, 2021
1 parent a400d98 commit e7ba843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ RUN addgroup --gid 101 terrascan && \
apk add --no-cache git openssh

# create ~/.ssh & ~/bin folder and change owner to terrascan
RUN mkdir -p /home/terrascan/.ssh /home/terrascan/bin && \
chown -R terrascan:terrascan /home/terrascan
RUN mkdir -p /home/terrascan/.ssh /home/terrascan/bin /data && \
chown -R terrascan:terrascan /home/terrascan /data

# run as non root user
USER 101
Expand Down

0 comments on commit e7ba843

Please sign in to comment.