<commit_before>FROM node:lts-alpine3.14 as build

RUN apk update && apk upgrade && \
  apk add --no-cache bash git openssh

RUN mkdir /app

WORKDIR /app

COPY package.json .

RUN npm install -g npm@latest
RUN npm install -g typescript@latest
RUN npm install -g --force yarn@latest

RUN yarn install

COPY . .

RUN yarn build

# ---------------

FROM node:lts-alpine3.14

RUN mkdir -p /app/build

RUN apk update && apk upgrade && apk add yarn git

WORKDIR /app

COPY --from=build /app/package.json .

RUN yarn install --production

COPY --from=build /app/build ./build
COPY --from=build /app/src/auth_config.json ./src/auth_config.json<commit_msg>Update Dockerfile<commit_after>FROM node:lts-alpine3.14 as build

RUN apk update && apk upgrade && \
  apk add --no-cache bash git openssh

RUN mkdir /app

WORKDIR /app

COPY package.json .

RUN npm install -g npm@latest
RUN npm install -g typescript@latest
RUN npm install -g --force yarn@latest
RUN npm install -g rimraf
RUN rimraf node_modules

RUN yarn install

COPY . .

RUN yarn build

# ---------------

FROM node:lts-alpine3.14

RUN mkdir -p /app/build

RUN apk update && apk upgrade && apk add git

WORKDIR /app

COPY --from=build /app/package.json .

RUN yarn install --production

COPY --from=build /app/build ./build
COPY --from=build /app/src/auth_config.json ./src/auth_config.json
{'fraction_non_alphanumeric': 0.12304250559284116, 'fraction_numerical': 0.008948545861297539, 'mean_word_length': 2.9011627906976742, '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': '767737', 'n_tokens_mistral': 496, 'n_tokens_neox': 454, 'n_words': 161}