2021-09-17 16:44:26 +00:00
|
|
|
FROM docker.io/alpine:3.13
|
|
|
|
|
2021-09-18 16:15:00 +00:00
|
|
|
RUN apk add --no-cache openssh-client make git bash coreutils diffutils sudo
|
2021-09-17 16:44:26 +00:00
|
|
|
|
|
|
|
RUN echo "https://alpine.sutty.nl/alpine/v3.13/sutty" >> "/etc/apk/repositories" && \
|
|
|
|
wget https://alpine.sutty.nl/alpine/sutty.pub -O "/etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub"
|
|
|
|
|
|
|
|
COPY packages /root/packages
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
2021-09-18 15:21:31 +00:00
|
|
|
RUN mkdir -p /home && \
|
2021-09-18 15:13:53 +00:00
|
|
|
adduser \
|
|
|
|
--disabled-password \
|
|
|
|
--gecos "" \
|
|
|
|
--home /home/suttier \
|
2021-09-18 16:15:00 +00:00
|
|
|
suttier && \
|
|
|
|
echo "suttier ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
2021-09-18 15:13:53 +00:00
|
|
|
USER suttier
|
|
|
|
|
|
|
|
COPY .gemrc /home/suttier/.gemrc
|