diff --git a/Dockerfile b/Dockerfile index 818a4db..83539dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,11 +61,8 @@ COPY ${NODEPROJECTSRC2} /home/${USER1}/${NODEPROJECT2} USER root RUN chown -R ${USER1}.${USER1} /home/${USER1} -USER ${USER1} RUN /home/${USER1}/${NODEPROJECT2}/install-fluent.sh -USER root -RUN /home/${USER1}/${NODEPROJECT2}/install-fluent-root.sh USER ${USER1} diff --git a/extrapackages b/extrapackages index c8bd9a3..0a6b4fa 100644 --- a/extrapackages +++ b/extrapackages @@ -3,3 +3,11 @@ cmake zlib unzip build-base +ruby +ruby-dev +ruby-etc +ruby-bigdecimal +ruby-io-console +ca-certificates +libressl +less diff --git a/setup.sh b/setup.sh index 3f90edc..063ac4e 100755 --- a/setup.sh +++ b/setup.sh @@ -42,8 +42,22 @@ apk --no-cache add \ tcptraceroute \ curl \ lynx \ - ruby \ - ruby-dev + +&& apk add --virtual .build-dependencies \ + build-base \ + ruby-dev \ + libressl-dev \ +&& gem install bundler || apk add ruby-bundler \ +&& bundle config build.nokogiri --use-system-libraries \ +&& bundle config git.allow_insecure true \ +&& gem install json \ +\ +&& gem cleanup \ +&& apk del .build-dependencies \ +&& rm -rf /usr/lib/ruby/gems/*/cache/* \ + /var/cache/apk/* \ + /tmp/* \ + /var/tmp/* extrap=/root/extrapackages