<commit_before>################## BASE IMAGE ######################

FROM clinicalgenomics/mip_base:2.1

################## METADATA ######################

LABEL base_image="clinicalgenomics/mip_base:2.1"
LABEL version="2"
LABEL software="upd"
LABEL software.version="0.1.1"
LABEL extra.binaries="upd"
LABEL maintainer="Clinical-Genomics/MIP"

RUN apt-get update --fix-missing && \
    apt-get install -y --no-install-recommends \
        ca-certificates && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN conda install pip python=3.7

## Clean up after conda
RUN /opt/conda/bin/conda clean -ya

## Download UPD
RUN wget --no-verbose https://github.com/bjhall/upd/archive/refs/tags/0.1.1.zip -O /opt/conda/share/UPD-0.1.1.zip

## Extract
RUN unzip -o /opt/conda/share/UPD-0.1.1.zip -d /opt/conda/share/

## Move to UPD directory
RUN cd /opt/conda/share/upd-0.1.1 && \
    python -m pip install --editable .<commit_msg>feat(upd): use --no-cache-dir when installing<commit_after>################## BASE IMAGE ######################

FROM clinicalgenomics/mip_base:2.1

################## METADATA ######################

LABEL base_image="clinicalgenomics/mip_base:2.1"
LABEL version="2"
LABEL software="upd"
LABEL software.version="0.1.1"
LABEL extra.binaries="upd"
LABEL maintainer="Clinical-Genomics/MIP"

RUN apt-get update --fix-missing && \
    apt-get install -y --no-install-recommends \
        ca-certificates && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN conda install pip python=3.7

## Clean up after conda
RUN /opt/conda/bin/conda clean -ya

## Download UPD
RUN wget --no-verbose https://github.com/bjhall/upd/archive/refs/tags/0.1.1.zip -O /opt/conda/share/UPD-0.1.1.zip

## Extract
RUN unzip -o /opt/conda/share/UPD-0.1.1.zip -d /opt/conda/share/

## Move to UPD directory
RUN cd /opt/conda/share/upd-0.1.1 && \
    python -m pip install --no-cache-dir --editable .
{'fraction_non_alphanumeric': 0.22832221652129298, 'fraction_numerical': 0.022575679835813236, 'mean_word_length': 3.3721973094170403, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2851179', 'n_tokens_mistral': 743, 'n_tokens_neox': 735, 'n_words': 153}