Containerfile: crear usuarix suttier
Some checks failed
continuous-integration/drone the build failed

This commit is contained in:
Cat /dev/Nulo 2021-09-18 12:13:53 -03:00
parent cce727b550
commit 8857027ba8

View file

@ -10,4 +10,15 @@ COPY packages /root/packages
RUN apk add --no-cache $(cat "/root/packages" | tr "\n" " ") RUN apk add --no-cache $(cat "/root/packages" | tr "\n" " ")
RUN sed -re "s/#(@platforms = )/\1/" -i "/usr/lib/ruby/2.7.0/rubygems.rb" RUN sed -re "s/#(@platforms = )/\1/" -i "/usr/lib/ruby/2.7.0/rubygems.rb"
COPY .gemrc /root/.gemrc RUN mkdir /home && \
adduser \
--disabled-password \
--gecos "" \
--ingroup suttier \
--home /home/suttier \
--no-create-home \
--uid "$UID" \
suttier
USER suttier
COPY .gemrc /home/suttier/.gemrc