FROM darthjee/scripts:0.3.1 as scripts FROM darthjee/circleci_ruby_270:1.2.0 as base COPY --chown=app:app ./ /home/circleci/project/ ###################################### FROM base as builder COPY --chown=circleci:circleci --from=scripts /home/scripts/builder/bundle_builder.sh /usr/local/sbin/bundle_builder.sh ENV PROJECT sinclair ENV HOME_DIR /home/circleci RUN bundle_builder.sh ####################### #FINAL IMAGE FROM base COPY --chown=circleci:circleci --from=builder /home/circleci/bundle/ /home/circleci/.rubygems/ COPY --chown=circleci:circleci --from=scripts /home/scripts/sbin/rubycritic.sh /usr/local/sbin/ COPY --chown=circleci:circleci --from=scripts /home/scripts/sbin/check_specs /usr/local/sbin/ COPY --chown=circleci:circleci --from=scripts /home/scripts/sbin/check_readme.sh /usr/local/sbin/ COPY --chown=circleci:circleci --from=scripts /home/scripts/sbin/build_gem.sh /usr/local/sbin/ RUN bundle install