ARG BASE_IMAGE=sutty/sdk ARG ALPINE_VERSION=3.13.6 FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "f " RUN apk add --no-cache git nodejs yarn tzdata libxslt-dev libxml2-dev RUN apk add --no-cache ruby-dev ruby-bundler ruby-json ruby-bigdecimal ruby-rake ruby-etc RUN apk add --no-cache postgresql-dev sqlite-dev mariadb-dev RUN apk add --no-cache linux-headers # https://github.com/rubygems/rubygems/issues/2918 # https://gitlab.alpinelinux.org/alpine/aports/issues/10808 COPY ./rubygems-platform-musl.patch /tmp/ RUN patch -d /usr/lib/ruby/2.7.0 -Np 0 -i /tmp/rubygems-platform-musl.patch ENTRYPOINT /bin/sh