This commit is contained in:
Tim Lianov 2025-01-09 20:11:17 +04:00
parent 545e2dfb29
commit a17b741e56
4 changed files with 43 additions and 43 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -55,49 +55,49 @@ RUN set -ex \
zlib-dev \ zlib-dev \
xz \ xz \
\ \
# && wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.xz" \ && wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.xz" \
# && echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum -c - \ && echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum -c - \
# \ \
# && mkdir -p /usr/src/ruby \ && mkdir -p /usr/src/ruby \
# && tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \ && tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
# && rm ruby.tar.xz \ && rm ruby.tar.xz \
# \ \
# && cd /usr/src/ruby \ && cd /usr/src/ruby \
# \ \
# # hack in "ENABLE_PATH_CHECK" disabling to suppress: # hack in "ENABLE_PATH_CHECK" disabling to suppress:
# # warning: Insecure world writable dir # warning: Insecure world writable dir
# && { \ && { \
# echo '#define ENABLE_PATH_CHECK 0'; \ echo '#define ENABLE_PATH_CHECK 0'; \
# echo; \ echo; \
# cat file.c; \ cat file.c; \
# } > file.c.new \ } > file.c.new \
# && mv file.c.new file.c \ && mv file.c.new file.c \
# \ \
# && autoconf \ && autoconf \
# # the configure script does not detect isnan/isinf as macros # the configure script does not detect isnan/isinf as macros
# && ac_cv_func_isnan=yes ac_cv_func_isinf=yes \ && ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
# ./configure --disable-install-doc --enable-shared \ ./configure --disable-install-doc --enable-shared \
# && make -j"$(getconf _NPROCESSORS_ONLN)" \ && make -j"$(getconf _NPROCESSORS_ONLN)" \
# && make install \ && make install \
# \ \
# && runDeps="$( \ && runDeps="$( \
# scanelf --needed --nobanner --recursive /usr/local \ scanelf --needed --nobanner --recursive /usr/local \
# | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
# | sort -u \ | sort -u \
# | xargs -r apk info --installed \ | xargs -r apk info --installed \
# | sort -u \ | sort -u \
# )" \ )" \
# && apk add --virtual .ruby-rundeps $runDeps \ && apk add --virtual .ruby-rundeps $runDeps \
# bzip2 \ bzip2 \
# ca-certificates \ ca-certificates \
# libffi-dev \ libffi-dev \
# openssl-dev \ openssl-dev \
# yaml-dev \ yaml-dev \
# procps \ procps \
# zlib-dev \ zlib-dev \
# && apk del .ruby-builddeps \ && apk del .ruby-builddeps \
# && cd / \ && cd / \
# && rm -r /usr/src/ruby && rm -r /usr/src/ruby
ENV RUBYGEMS_VERSION 2.6.10 ENV RUBYGEMS_VERSION 2.6.10
RUN gem update --system "$RUBYGEMS_VERSION" RUN gem update --system "$RUBYGEMS_VERSION"