containers-gem-compiler/Dockerfile

27 lines
710 B
Text
Raw Normal View History

2021-09-29 18:50:23 +00:00
ARG BASE_IMAGE=sutty/sdk-ruby
ARG ALPINE_VERSION=3.13.6
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
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
2019-09-18 14:20:01 +00:00
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1
2019-09-18 13:18:01 +00:00
2020-09-26 20:00:46 +00:00
RUN gem install --no-user-install --no-document --source https://rubygems.org geminabox mini_portile2 gem-compiler
2019-09-18 13:18:01 +00:00
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
2019-11-15 14:22:44 +00:00
RUN apk add --no-cache file-dev
RUN apk add --no-cache libssh2-dev
2020-09-26 20:00:46 +00:00
RUN apk add --no-cache libc6-compat libstdc++
2019-11-15 14:22:44 +00:00
2019-09-18 13:18:01 +00:00
USER builder
ENTRYPOINT /usr/local/bin/gemcompiler