<commit_before>ARG version=3.9

FROM alpine:$version as latest
LABEL maintainer="<NAME> <<EMAIL>>"

ARG version

ENV TEMP=/tmp \
    ENV=/etc/profile \
    CLEAN="/var/cache/apk/:/tmp/"

RUN adduser -u 1000 -S -s /bin/sh -G users user && echo "user:password" | chpasswd 2>/dev/null

COPY rootfs /

RUN sed -i "s/\$ALPINE_RELEASE/$([ 'edge' = "$version" ] && echo "$version" || echo "v$version")/g" /etc/apk/repositories \
    && [ 'edge' = "$version" ] && sed -i 's/@testing //' /etc/apk/repositories || echo "ok" >/dev/null \
    && apk --update add busybox-suid su-exec tini monit inotify-tools dropbear dropbear-scp dropbear-dbclient dropbear-convert ca-certificates gettext libintl ttf-inconsolata \
    && if [ '3.5' = "$version" ]; then apk add wget libressl; fi \
    && if [ 'edge' = "$version" ] || [ "$(echo "$version" | cut -d. -f2)" -gt 6 ]; then apk add busybox-extras; fi \
    && mv /usr/bin/envsubst /usr/local/bin/ \
    && apk del gettext && clean

RUN chmod 600 /etc/monitrc

ENTRYPOINT [ "/docker-entrypoint.sh" ]

FROM latest AS build
LABEL maintainer="<NAME> <<EMAIL>>"

ARG version

RUN [ 'edge' = "$version" ] && apk --update upgrade || apk update \
    && apk add build-base make cmake automake autoconf libtool && clean

FROM latest<commit_msg>[base] Fix build tags<commit_after>ARG version=3.9

FROM alpine:$version as latest
LABEL maintainer="<NAME> <<EMAIL>>"

ARG version

ENV TEMP=/tmp \
    ENV=/etc/profile \
    CLEAN="/var/cache/apk/:/tmp/"

RUN adduser -u 1000 -S -s /bin/sh -G users user && echo "user:password" | chpasswd 2>/dev/null

COPY rootfs /

RUN sed -i "s/\$ALPINE_RELEASE/$([ 'edge' = "$version" ] && echo "$version" || echo "v$version")/g" /etc/apk/repositories \
    && [ 'edge' = "$version" ] && sed -i 's/@testing //' /etc/apk/repositories || echo "ok" >/dev/null \
    && apk --update add busybox-suid su-exec tini monit inotify-tools dropbear dropbear-scp dropbear-dbclient dropbear-convert ca-certificates gettext libintl ttf-inconsolata \
    && if [ '3.5' = "$version" ]; then apk add wget libressl; fi \
    && if [ 'edge' = "$version" ] || [ "$(echo "$version" | cut -d. -f2)" -gt 6 ]; then apk add busybox-extras; fi \
    && mv /usr/bin/envsubst /usr/local/bin/ \
    && apk del gettext && clean

RUN chmod 600 /etc/monitrc

ENTRYPOINT [ "/docker-entrypoint.sh" ]

FROM latest AS build
LABEL maintainer="<NAME> <<EMAIL>>"

ARG version

RUN apk --update upgrade \
    && apk add build-base make cmake automake autoconf libtool && clean

FROM latest
{'fraction_non_alphanumeric': 0.17311527722377343, 'fraction_numerical': 0.011168727562824093, 'mean_word_length': 3.173044925124792, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '6293863', 'n_tokens_mistral': 956, 'n_tokens_neox': 912, 'n_words': 262}