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