ARG BASE_IMAGE=sutty/sdk-ruby ARG ALPINE_VERSION=3.13.6 FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "f " ENV PLATFORM=x86_64-linux-musl ENV GEM_NAME=none ENV GEM_VERSION=0 ENV SUTTY=sutty.nl ENV HTTP_BASIC_USER=sutty ENV HTTP_BASIC_PASSWORD=gibberish ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1 ENV EXTRA_PKGS='' RUN id RUN gem env RUN ls -hal /usr/lib/ruby/gems/2.7.0 RUN gem install --no-user-install --no-document --source https://rubygems.org geminabox mini_portile2 gem-compiler COPY ./gem-compiler.sh /usr/local/bin/gem-compiler COPY ./bootstrap.sh /usr/local/bin/bootstrap COPY ./bulk-compiler.sh /usr/local/bin/bulk-compiler RUN install -dm 2750 -o builder -g builder /srv/gems VOLUME /srv/gems RUN apk add --no-cache su-exec libc6-compat libstdc++ openssh-client ENTRYPOINT /bin/sh