added a new user in the dockerfile

This commit is contained in:
Tobias Schmidl 2023-09-07 13:36:10 +02:00
parent e32ca8b9b0
commit 7177edafd4

View file

@ -25,5 +25,8 @@ RUN apt update \
git \
&& find /var/lib/apt -type f -delete
VOLUME /workdir
RUN useradd -rm builder
USER builder
WORKDIR /workdir