##################### # Building Stage # ##################### FROM ruby:2.7-alpine as builder RUN gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ && \ gem sources -l && \ git clone https://github.com/YuanZhencai/omniauth-inspur.git && \ cd omniauth-inspur && \ ls -al && \ gem build omniauth-inspur.gemspec ###################### # Production Stage # ###################### FROM registry.cn-hangzhou.aliyuncs.com/palan/gitlab-zh:11.1.4 as production LABEL maintainer="Yuan " COPY --from=builder /omniauth-inspur/omniauth-inspur-1.0.0.gem /omniauth-inspur-1.0.0.gem RUN ls -al / && \ gem install /omniauth-inspur-1.0.0.gem --local && \ rm -rf /omniauth-inspur-1.0.0.gem && \ cd /opt/gitlab/embedded/service/gitlab-rails && \ echo "gem 'omniauth-inspur', '~> 1.0.0'" >> Gemfile && \ bundle install --local && \ bundle info omniauth-inspur