ARG BASE_IMAGE=sutty/sdk-ruby ARG ALPINE_VERSION=3.13.6 FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "f " ENV GEM=none ENV 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 mini_portile2 gem-compiler COPY ./gemcompiler.sh /usr/local/bin/gemcompiler COPY ./bootstrap.sh /usr/local/bin/bootstrap RUN install -dm 2750 -o builder -g builder /srv/gems VOLUME /srv/gems RUN apk add --no-cache su-exec file-dev libssh2-dev libc6-compat libstdc++ ENTRYPOINT /usr/local/bin/bootstrap