Skip to content

Commit

Permalink
run as kubeshot user
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwickenden committed Jan 17, 2024
1 parent 4c3e596 commit 3b4117c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ RUN \
# headful mode support, for example: $ xvfb-run chromium-browser --remote-debugging-port=9222
xvfb \
# cleanup
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN useradd -u 1001 -m -s /bin/bash kubeshot

COPY --from=build /go/bin/kubeshot /usr/local/bin/kubeshot

WORKDIR /data

RUN chown kubeshot:kubeshot /data

USER kubeshot

0 comments on commit 3b4117c

Please sign in to comment.