Skip to content

Commit

Permalink
Speficy group and user id in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tsigouris007 committed Feb 13, 2024
1 parent 1d93dd3 commit b3f9c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY deb/crowdstrike-cs-falconhoseclient_2.18.0_amd64.deb "${WORKDIR}/crowdstrik
RUN dpkg -i "${WORKDIR}/crowdstrike.deb"

# Prepare a simple user instead of root
RUN groupadd -r user && useradd -r -g user user
RUN groupadd -g 1000 user && useradd -r -u 1000 -g user user
RUN chown -R user:user /var/log/crowdstrike/falconhoseclient
RUN chmod -R 755 /var/log/crowdstrike/falconhoseclient
RUN chown -R user:user /opt/crowdstrike/etc
Expand Down

0 comments on commit b3f9c4d

Please sign in to comment.