<commit_before>FROM amazeeio/centos7-node-builder:6 as builder
ENV NODE_ENV production
COPY package.json yarn.lock /app/
RUN BUILD_ONLY=true yarn install --pure-lockfile && yarn cache clean

FROM amazeeio/centos7-node:6
ENV NODE_ENV production
COPY --from=builder /app/node_modules /app/node_modules
COPY . /app/

ARG AMAZEEIO_GIT_BRANCH=undefined

ENV RABBITMQ_HOST "amazeeio:NYTVU4jdRMjRMmbRcC3JubDH8M34MrWeT3@${AMAZEEIO_GIT_BRANCH}-rabbitmq"
ENV AMAZEEIO_API_HOST "http://${AMAZEEIO_GIT_BRANCH}-api:3000"
ENV JENKINS_URL "https://admin:fZk3bf7hsbZCQ4kYHeYkXYNitCoy6u3BbmZrm9FR@jenkins.amazeeio.cloud"

RUN yarn run build

RUN fix-permissions /app/

CMD ["yarn", "start"]<commit_msg>need to define BRANCH so it loads the correct oc-build-deploy<commit_after>FROM amazeeio/centos7-node-builder:6 as builder
ENV NODE_ENV production
COPY package.json yarn.lock /app/
RUN BUILD_ONLY=true yarn install --pure-lockfile && yarn cache clean

FROM amazeeio/centos7-node:6
ENV NODE_ENV production
COPY --from=builder /app/node_modules /app/node_modules
COPY . /app/

ARG AMAZEEIO_GIT_BRANCH=undefined

ENV RABBITMQ_HOST "amazeeio:NYTVU4jdRMjRMmbRcC3JubDH8M34MrWeT3@${AMAZEEIO_GIT_BRANCH}-rabbitmq"
ENV AMAZEEIO_API_HOST "http://${AMAZEEIO_GIT_BRANCH}-api:3000"
ENV JENKINS_URL "https://admin:fZk3bf7hsbZCQ4kYHeYkXYNitCoy6u3BbmZrm9<EMAIL>"

ENV BRANCH ${AMAZEEIO_GIT_BRANCH}

RUN yarn run build

RUN fix-permissions /app/

CMD ["yarn", "start"]
{'fraction_non_alphanumeric': 0.0975609756097561, 'fraction_numerical': 0.027874564459930314, 'mean_word_length': 6.402061855670103, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3611453', 'n_tokens_mistral': 648, 'n_tokens_neox': 603, 'n_words': 113}