Containerfile: crear usuarix suttier
Some checks failed
continuous-integration/drone the build failed
Some checks failed
continuous-integration/drone the build failed
This commit is contained in:
parent
cce727b550
commit
8857027ba8
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue