2022-06-04 18:27:25 +00:00
|
|
|
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}
|
2019-09-10 23:10:18 +00:00
|
|
|
MAINTAINER "f <f@sutty.nl>"
|
2019-09-18 13:18:01 +00:00
|
|
|
|
2021-09-29 19:53:31 +00:00
|
|
|
ENV PLATFORM=x86_64-linux-musl
|
2021-09-30 00:11:17 +00:00
|
|
|
ENV GEM_NAME=none
|
|
|
|
ENV GEM_VERSION=0
|
2019-09-18 13:18:01 +00:00
|
|
|
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
|
2021-09-29 18:54:59 +00:00
|
|
|
ENV EXTRA_PKGS=''
|
2019-09-18 13:18:01 +00:00
|
|
|
|
2023-02-04 14:47:34 +00:00
|
|
|
COPY ./gem-compiler-0.10.0.gem /tmp/
|
|
|
|
RUN gem install --no-user-install --no-document --source https://rubygems.org geminabox
|
|
|
|
RUN gem install --no-user-install --no-document --source https://rubygems.org /tmp/gem-compiler-0.10.0.gem
|
2019-09-18 13:18:01 +00:00
|
|
|
|
2021-09-29 19:19:40 +00:00
|
|
|
COPY ./gem-compiler.sh /usr/local/bin/gem-compiler
|
2021-09-29 18:54:59 +00:00
|
|
|
COPY ./bootstrap.sh /usr/local/bin/bootstrap
|
2021-09-29 19:53:53 +00:00
|
|
|
COPY ./bulk-compiler.sh /usr/local/bin/bulk-compiler
|
2022-08-26 19:21:32 +00:00
|
|
|
COPY ./os-version.sh /usr/local/bin/os-version
|
2019-09-18 13:18:01 +00:00
|
|
|
|
|
|
|
RUN install -dm 2750 -o builder -g builder /srv/gems
|
|
|
|
VOLUME /srv/gems
|
|
|
|
|
2023-02-04 16:01:43 +00:00
|
|
|
RUN apk add --no-cache su-exec libc6-compat libstdc++ openssh-client
|
|
|
|
RUN apk add --no-cache tea \
|
|
|
|
|| wget https://gitea.com/attachments/395b73a9-a56b-4933-8c99-dc2d2619925a -O /usr/bin/tea \
|
|
|
|
&& chmod +x /usr/bin/tea
|
2019-11-15 14:22:44 +00:00
|
|
|
|
2021-09-29 19:19:40 +00:00
|
|
|
ENTRYPOINT /bin/sh
|