<commit_before># ------------------------------
# The build image
# ------------------------------
FROM alpine:3.15 as builder

# add deps for building kbase-ui
RUN apk upgrade --update-cache --available && \
    apk add --update --no-cache bash chromium g++ git make nodejs npm python2 && \
    mkdir -p /kb

COPY ./package.json /kb
COPY ./package-lock.json /kb
WORKDIR /kb
RUN npm install

COPY . /kb

ARG BUILD_CONFIG

# Build kbase-ui
RUN echo "Using build arg $BUILD_CONFIG"
RUN make build config="$BUILD_CONFIG"

LABEL stage=intermediate

# ------------------------------
# The product image
# ------------------------------
FROM alpine:3.15

RUN apk upgrade --update-cache --available && \
    apk add --update --no-cache bash ca-certificates nginx && \
    mkdir -p /kb

WORKDIR /kb

# This version uses master; otherwise functionally equivalent other than style.
RUN archive=dockerize-alpine-linux-amd64-v0.6.1.tar.gz && \<commit_msg>switch to python3 dependency for a js dependency (!?!)<commit_after># ------------------------------
# The build image
# ------------------------------
FROM alpine:3.15 as builder

# add deps for building kbase-ui
RUN apk upgrade --update-cache --available && \
    apk add --update --no-cache bash chromium g++ git make nodejs npm python3 && \
    mkdir -p /kb

COPY ./package.json /kb
COPY ./package-lock.json /kb
WORKDIR /kb
RUN npm install

COPY . /kb

ARG BUILD_CONFIG

# Build kbase-ui
RUN echo "Using build arg $BUILD_CONFIG"
RUN make build config="$BUILD_CONFIG"

LABEL stage=intermediate

# ------------------------------
# The product image
# ------------------------------
FROM alpine:3.15

RUN apk upgrade --update-cache --available && \
    apk add --update --no-cache bash ca-certificates nginx && \
    mkdir -p /kb

WORKDIR /kb

# This version uses master; otherwise functionally equivalent other than style.
RUN archive=dockerize-alpine-linux-amd64-v0.6.1.tar.gz && \
{'fraction_non_alphanumeric': 0.22262584327970938, 'fraction_numerical': 0.012973533990659055, 'mean_word_length': 1.970724191063174, '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': '5159470', 'n_tokens_mistral': 592, 'n_tokens_neox': 550, 'n_words': 200}