bugsnag/bugsnag-js

View on GitHub
dockerfiles/Dockerfile.react-native-cli-android-builder

Summary

Maintainability
Test Coverage
FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base-java-11

RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get update && apt-get install -y nodejs rsync expect \
    # Dependencies for MazeRunner
    ruby-full apt-utils docker-compose wget unzip bash bundler libcurl4 libcurl4-openssl-dev

RUN npm i -g run-func

WORKDIR /app

# Install MazeRunner as a Gem
COPY test/react-native-cli/Gemfile Gemfile
RUN bundle install

# npm auth
RUN rm -f ~/.npmrc
ARG REGISTRY_URL
ARG REG_BASIC_CREDENTIAL
ARG REG_NPM_EMAIL
RUN echo "registry=$REGISTRY_URL" >> ~/.npmrc
RUN echo "_auth=$REG_BASIC_CREDENTIAL" >> ~/.npmrc
RUN echo "email=$REG_NPM_EMAIL" >> ~/.npmrc
RUN echo "always-auth=true" >> ~/.npmrc

# Now copy in all the files needed to build
COPY .git .git
COPY lerna.json .
COPY scripts/common.js scripts/react-native-cli-helper.js scripts/

RUN bundle exec maze-runner --version

ENTRYPOINT ["bundle", "exec", "maze-runner"]