containers-gem-compiler/Dockerfile

22 lines
565 B
Docker
Raw Normal View History

2019-09-18 13:18:01 +00:00
FROM sutty/sdk-ruby:latest
2019-09-10 23:10:18 +00:00
MAINTAINER "f <f@sutty.nl>"
2019-09-18 13:18:01 +00:00
ENV GEM=none
ENV VERSION=0
ENV SUTTY=sutty.nl
ENV HTTP_BASIC_USER=sutty
ENV HTTP_BASIC_PASSWORD=gibberish
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
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