Skip to content

Commit

Permalink
adjust dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-zanutto authored Apr 1, 2024
1 parent 5647f2b commit 104116c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docker/greenmask/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ RUN apt-get update \

COPY --from=build /var/lib/greenmask/greenmask /usr/bin

RUN mkdir ~/.bash_completions \
&& greenmask completion bash > /root/.bash_completions/greenmask.bash \
&& echo 'source /etc/bash_completion' >> /root/.bashrc \
&& echo 'source /root/.bash_completions/greenmask.bash' >> /root/.bashrc
RUN mkdir /home/greenmask \
&& groupadd -g 10001 greenmask \
&& useradd -u 10000 -g greenmask greenmask \
&& chown -R greenmask:greenmask /home/greenmask

USER greenmask:greenmask

RUN groupadd -r greenmask && useradd -r -g greenmask greenmask
USER greenmask
RUN mkdir ~/.bash_completions \
&& greenmask completion bash > ~/.bash_completions/greenmask.bash \
&& echo 'source /etc/bash_completion' >> ~/.bashrc \
&& echo 'source ~/.bash_completions/greenmask.bash' >> ~/.bashrc

ENTRYPOINT ["greenmask"]

0 comments on commit 104116c

Please sign in to comment.