From d34c710c249330dff4ce3f0414d6af58646ff971 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 10 Sep 2019 20:24:08 -0300 Subject: [PATCH] sdk-ruby --- Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 59c5898..ed1a0ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,15 @@ -FROM sutty/monit:latest +FROM sutty/sdk:latest MAINTAINER "f " +ENV VERSION 2.5.5 + +RUN apk add --no-cache git nodejs nodejs-npm 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 cmake +RUN test "$VERSION" = `ruby -e 'puts RUBY_VERSION'` + +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 + +ENTRYPOINT /bin/sh