FROM sutty/sdk-ruby:latest 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 COPY ./gem-compiler.gem /tmp/ RUN gem install --no-user-install --no-document /tmp/gem-compiler.gem RUN gem install --no-user-install --no-document --source https://rubygems.org geminabox mini_portile2 COPY ./gemcompiler.sh /usr/local/bin/gemcompiler RUN chmod 755 /usr/local/bin/gemcompiler RUN install -dm 2750 -o builder -g builder /srv/gems VOLUME /srv/gems USER builder ENTRYPOINT /usr/local/bin/gemcompiler