ARG RUBY_VERSION=2.7 ARG RUBY_PATCH=6 ARG ALPINE_VERSION=3.13.6 ARG BASE_IMAGE=sutty/sdk-ruby FROM ${BASE_IMAGE}:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH} 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 gem install --no-user-install --no-document --source https://rubygems.org geminabox 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