# This is a Docker image to test the CLI in UNIX environments other than macOS # Build the image: docker build . -t shopify-cli # Run tests: docker run -t --rm --volume "$(pwd):/usr/src/app" shopify-cli bundle exec rake test FROM cimg/ruby:2.7.1-node RUN git config --global user.email "development-lifecycle@shopify.com" RUN git config --global user.name "Development Lifecycle" # throw errors if Gemfile has been modified since Gemfile.lock RUN bundle config --global frozen 1 WORKDIR /usr/src/app COPY Gemfile Gemfile.lock ./ COPY shopify-cli.gemspec shopify-cli.gemspec COPY lib/shopify_cli/version.rb lib/shopify_cli/version.rb COPY . . RUN bundle install