"Fossies" - the Fresh Open Source Software Archive

Member "angular-8.2.14/tools/ngcontainer/Dockerfile" (13 Nov 2019, 2584 Bytes) of package /linux/www/angular-8.2.14.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 FROM circleci/node:10.9.0-browsers
    2 
    3 USER root
    4 
    5 ###
    6 # Bazel install
    7 # See https://bazel.build/versions/master/docs/install-ubuntu.html#using-bazel-custom-apt-repository-recommended
    8 # Note, only the latest release is available, see https://github.com/bazelbuild/bazel/issues/4947
    9 RUN BAZEL_VERSION="0.18.0" \
   10  && wget -q -O - https://bazel.build/bazel-release.pub.gpg | apt-key add - \
   11  && echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" > /etc/apt/sources.list.d/bazel.list \
   12  && apt-get update \
   13  && apt-get install -y bazel=$BAZEL_VERSION \
   14  && rm -rf /var/lib/apt/lists/*
   15 
   16 ###
   17 # Brotli compression
   18 # Not available on backports so we have to pull from Debian 9
   19 # See https://packages.debian.org/search?keywords=brotli
   20 RUN echo "deb http://deb.debian.org/debian stretch main contrib" > /etc/apt/sources.list.d/stretch.list \
   21  && apt-get update \
   22  && apt-get install -y --no-install-recommends brotli/stretch
   23 
   24 ###
   25 # Buildifier
   26 # TODO(alexeagle): remove this when all users use their locally built buildifier
   27 # BUILD file formatter
   28 # 'bazel clean --expunge' conserves size of the image
   29 RUN git clone https://github.com/bazelbuild/buildtools.git \
   30  && (cd buildtools \
   31   && bazel build //buildifier \
   32   && cp bazel-bin/buildifier/linux_amd64_stripped/buildifier /usr/local/bin/ \
   33   && bazel clean --expunge \
   34   ) && rm -rf buildtools
   35 
   36 ###
   37 # Skylint
   38 # TODO(alexeagle): remove this when all users use their locally built skylint
   39 # .bzl file linter
   40 # Follows readme at https://github.com/bazelbuild/bazel/blob/master/site/docs/skylark/skylint.md#building-the-linter
   41 # 'bazel clean --expunge' conserves size of the image
   42 RUN git clone https://github.com/bazelbuild/bazel.git \
   43  && (cd bazel \
   44   && bazel build //src/tools/skylark/java/com/google/devtools/skylark/skylint:Skylint_deploy.jar \
   45   && cp bazel-bin/src/tools/skylark/java/com/google/devtools/skylark/skylint/Skylint_deploy.jar /usr/local/bin \
   46   && bazel clean --expunge \
   47   ) && rm -rf bazel
   48 
   49 USER circleci
   50 
   51 ###
   52 # Fix up npm global installation
   53 # See https://docs.npmjs.com/getting-started/fixing-npm-permissions
   54 RUN mkdir ~/.npm-global \
   55  && npm config set prefix '~/.npm-global' \
   56  && echo "export PATH=~/.npm-global/bin:$PATH" >> ~/.profile
   57 
   58 ###
   59 # This version of ChromeDriver works with the Chrome version included
   60 # in the circleci/*-browsers base image above.
   61 # This variable is intended to be used by passing it as an argument to
   62 # "postinstall": "webdriver-manager update ..."
   63 ENV CHROMEDRIVER_VERSION_ARG "--versions.chrome 2.41"
   64 
   65 WORKDIR /home/circleci
   66 ENTRYPOINT ["/bin/bash", "--login"]