Add user and drop privileges
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
d350cf0c78
commit
b9ad296b03
1 changed files with 5 additions and 4 deletions
|
@ -4,13 +4,14 @@ COPY --from=koalaman/shellcheck:v0.9.0 /bin/shellcheck /bin/
|
||||||
RUN apk add --update --no-cache \
|
RUN apk add --update --no-cache \
|
||||||
build-base \
|
build-base \
|
||||||
gcc \
|
gcc \
|
||||||
ruby-full \
|
ruby \
|
||||||
git \
|
git \
|
||||||
openssh-keygen \
|
openssh-keygen \
|
||||||
&& \
|
&& \
|
||||||
gem install mdl --no-document && \
|
pip install --no-cache-dir pre-commit && \
|
||||||
pip install pre-commit && \
|
gem install --no-document mdl && \
|
||||||
mkdir /data && \
|
mkdir /data && \
|
||||||
git config --global --add safe.directory /data
|
adduser -D -g user user
|
||||||
|
|
||||||
|
USER user:user
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
Loading…
Reference in a new issue