<commit_before>#
# Build: docker build -t ndslabs/angular-ui .
#
FROM node:fermium

# Install helper tools
RUN apt-get -qq update && \
    apt-get -qq install --no-install-recommends \
      build-essential \
      git \
      sudo \
      vim \
      wget \
      curl && \
    apt-get -qq autoremove && \
    apt-get -qq autoclean && \
    apt-get -qq clean all && \
    rm -rf /var/cache/apk/* /tmp/* /var/lib/apt/lists/*

WORKDIR /root

# Install Grunt + Gulp
RUN npm install -g grunt-cli gulp-cli

# Set build information here before building (or at build time with --build-args version=X.X.X)
ARG version="1.3.3"

# Set up necessary environment variables
ENV DEBIAN_FRONTEND="noninteractive" \
    TERM="xterm" \
    NODE_ENV="production" \
    BASEDIR="/home"


# Copy in our app source
WORKDIR $BASEDIR
COPY package.json package-lock.json $BASEDIR/
RUN npm install
COPY . $BASEDIR/

# Update build date / version number and enable backports
RUN /bin/sed -i -e "s#^\.constant('BuildVersion', '.*')#.constant('BuildVersion', '${version}')#" "$BASEDIR/ConfigModule.js" && \
    /bin/sed -i -e "s#^\.constant('BuildDate', .*)#.constant('BuildDate', new Date('$(date)'))#" "$BASEDIR/ConfigModule.js"

# Install app dependencies
RUN grunt swagger-js-codegen

# Set up some default environment variable
ENV APISERVER_HOST="localhost" \
    APISERVER_PORT="443" \<commit_msg>fix: roll NPM forward to v7 for better performance and more reproducible builds<commit_after>#
# Build: docker build -t ndslabs/angular-ui .
#
FROM node:fermium

# Upgrade npm
RUN npm install -g npm@7

# Install helper tools
RUN apt-get -qq update && \
    apt-get -qq install --no-install-recommends \
      build-essential \
      git \
      sudo \
      vim \
      wget \
      curl && \
    apt-get -qq autoremove && \
    apt-get -qq autoclean && \
    apt-get -qq clean all && \
    rm -rf /var/cache/apk/* /tmp/* /var/lib/apt/lists/*

WORKDIR /root

# Install Grunt + Gulp
RUN npm install -g grunt-cli gulp-cli 

# Set build information here before building (or at build time with --build-args version=X.X.X)
ARG version="1.3.3"

# Set up necessary environment variables
ENV DEBIAN_FRONTEND="noninteractive" \
    TERM="xterm" \
    NODE_ENV="production" \
    BASEDIR="/home"


# Copy in our app source
WORKDIR $BASEDIR
COPY package.json package-lock.json $BASEDIR/
RUN npm install
COPY . $BASEDIR/

# Update build date / version number and enable backports
RUN /bin/sed -i -e "s#^\.constant('BuildVersion', '.*')#.constant('BuildVersion', '${version}')#" "$BASEDIR/ConfigModule.js" && \
    /bin/sed -i -e "s#^\.constant('BuildDate', .*)#.constant('BuildDate', new Date('$(date)'))#" "$BASEDIR/ConfigModule.js"

# Install app dependencies
RUN grunt swagger-js-codegen

# Set up some default environment variable
ENV APISERVER_HOST="localhost" \
    APISERVER_PORT="443" \
{'fraction_non_alphanumeric': 0.14280714035701786, 'fraction_numerical': 0.004900245012250612, 'mean_word_length': 3.036723163841808, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1493243', 'n_tokens_mistral': 996, 'n_tokens_neox': 969, 'n_words': 281}