2021-09-29 18:40:28 +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-10 23:24:08 +00:00
|
|
|
|
2021-09-29 18:44:40 +00:00
|
|
|
RUN apk add --no-cache git nodejs yarn tzdata libxslt-dev libxml2-dev
|
2019-09-10 23:24:08 +00:00
|
|
|
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
|
2019-09-18 16:43:54 +00:00
|
|
|
RUN apk add --no-cache linux-headers
|
2019-09-10 23:24:08 +00:00
|
|
|
|
|
|
|
RUN addgroup -g 82 -S www-data
|
|
|
|
RUN adduser -s /bin/sh -G www-data -h /home/app -D app
|
|
|
|
RUN install -dm 2750 -o app -g www-data /home/app/sutty
|
|
|
|
|
2019-09-18 16:43:54 +00:00
|
|
|
# https://github.com/rubygems/rubygems/issues/2918
|
|
|
|
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
|
|
|
COPY ./rubygems-platform-musl.patch /tmp/
|
2020-09-26 20:01:45 +00:00
|
|
|
RUN patch -d /usr/lib/ruby/2.7.0 -Np 0 -i /tmp/rubygems-platform-musl.patch
|
2019-09-18 16:43:54 +00:00
|
|
|
|
2019-09-10 23:24:08 +00:00
|
|
|
ENTRYPOINT /bin/sh
|