<commit_before>FROM fedora:25

LABEL maintainer="<NAME> <<EMAIL>>"

# RUN dnf install -y curl tar gcc openssl-devel cmake make file libcurl-devel zsh && \
#     dnf clean all

# stable, beta, nightly, 1.15.1
# channel, channel + date, or an explicit version
ARG RUST_SPEC=stable
# ARG WITH_TEST="yes"
ARG USER_ID="1000"
ARG USER="rust"
ARG RUST_BACKTRACE="1"

ENV HOME=/home/${USER}
RUN useradd -o -u ${USER_ID} -m ${USER}

# https://static.rust-lang.org/dist/2017-03-16/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
RUN cd $HOME && curl -s https://static.rust-lang.org/rustup.sh | sh -s -- --spec=$RUST_SPEC --verbose --disable-sudo

USER ${USER_ID}

# RUN if [ $WITH_TEST == "yes" ] ; then \
#     cargo install clippy || : ; \
#     fi

# ENV LANG=en_US.utf8 \
#     LC_ALL=en_US.UTF-8

CMD ["/bin/bash"]

WORKDIR /src
VOLUME /src<commit_msg>dockerfile: save rustup; rustup needs file<commit_after>FROM fedora:25

LABEL maintainer="<NAME> <<EMAIL>>"

# curl tar gcc openssl-devel cmake make libcurl-devel zsh
RUN dnf install -y file && \
    dnf clean all

# stable, beta, nightly, 1.15.1
# channel, channel + date, or an explicit version
ARG RUST_SPEC=stable
# ARG WITH_TEST="yes"
ARG USER_ID="1000"
ARG USER="rust"
ARG RUST_BACKTRACE="1"

ENV HOME=/home/${USER}
RUN useradd -o -u ${USER_ID} -m ${USER}

# https://static.rust-lang.org/dist/2017-03-16/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
RUN cd /root && curl -s -L -O https://static.rust-lang.org/rustup.sh
RUN cd /root && bash ./rustup.sh --spec=$RUST_SPEC --verbose --disable-sudo

USER ${USER_ID}

# RUN if [ $WITH_TEST == "yes" ] ; then \
#     cargo install clippy || : ; \
#     fi

# ENV LANG=en_US.utf8 \
#     LC_ALL=en_US.UTF-8

CMD ["/bin/bash"]

WORKDIR /src
VOLUME /src
{'fraction_non_alphanumeric': 0.16351118760757316, 'fraction_numerical': 0.02868617326448652, 'mean_word_length': 3.4151898734177215, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '2908376', 'n_tokens_mistral': 739, 'n_tokens_neox': 691, 'n_words': 175}