@@ -5,8 +5,7 @@ RUN apt-get update && apt-get install -y build-essential \
55 git libpq-dev libcurl4 libjemalloc2 \
66 libsecp256k1-dev libsodium-dev
77ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
8- # --registry=https://registry.npm.taobao.org
9- # RUN gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ && \
8+ RUN gem update --system 3.3.22
109WORKDIR /usr/src/
1110ARG RAILS_ENV=production
1211ARG BUNDLER_VERSION=2.3.25
@@ -25,12 +24,11 @@ ADD . /usr/src/
2524
2625
2726FROM ruby:${RUBY_VERSION}-slim
28- # RUN sed --in-place --regexp-extended "s/(\/\/)(deb|security).debian.org/\1mirrors.ustc.edu.cn/" /etc/apt/sources.list && \
29- # apt-get update && apt-get upgrade --yes
3027RUN apt-get update && apt-get install -y \
3128 libpq5 libsodium23 curl \
3229 libcurl4 libjemalloc2 \
3330 && rm -rf /var/lib/apt/lists/*
31+ RUN gem update --system 3.3.22
3432ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
3533ARG BUNDLER_VERSION=2.2.32
3634RUN gem i -N bundler:$BUNDLER_VERSION foreman
@@ -42,4 +40,3 @@ ARG RAILS_ENV=production
4240ENV RAILS_ENV=${RAILS_ENV}
4341ENV RAILS_SERVE_STATIC_FILES true
4442ENV RAILS_LOG_TO_STDOUT true
45-
0 commit comments