Sha256: c104713f36422edb70e9bd0ad7466518930fbc5899567d46f7e7cf0f774cce82

Contents?: true

Size: 947 Bytes

Versions: 1

Compression:

Stored size: 947 Bytes

Contents

#####################
#  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 <zhencai.yuan@datarx.cn>"

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-inspur-1.0.0 Dockerfile