<commit_before>FROM nginx

RUN apt-get install tar

ADD https://github.com/DINA-Web/collections-ui/releases/download/v0.1.3/release.tar.gz /tmp/

RUN cd /tmp && tar -xvzf /tmp/release.tar.gz && \
    mv /tmp/dw-collection-manager/* /usr/share/nginx/html && \
    rm -r /tmp/dw-collection-manager/ && rm /tmp/release.tar.gz

# Set the hostname to the API by using the NEW_HOST environment variable.
# The variable should be in the format 'http://example.com/api'.
# This is specified in the docker-compose.yml-file.

RUN echo $NEW_HOST && \
    echo $DEBUG && echo DEBUG && \
    export NEW_HOST=http://beta.dina-web.net:81 && \
    sed -i 's@REPLACEWITHHOST@'"$NEW_HOST"'@g' /usr/share/nginx/html/index.html

COPY nginx-conf /etc/nginx/conf.d<commit_msg>Update version<commit_after>FROM nginx

RUN apt-get install tar

ADD https://github.com/DINA-Web/collections-ui/releases/download/v0.1.7/release.tar.gz /tmp/

RUN cd /tmp && tar -xvzf /tmp/release.tar.gz && \
    mv /tmp/dw-collection-manager/* /usr/share/nginx/html && \
    rm -r /tmp/dw-collection-manager/ && rm /tmp/release.tar.gz

RUN export NEW_HOST=https://beta-api.dina-web.net && \
    sed -i 's@REPLACEWITHHOST@'"$NEW_HOST"'@g' /usr/share/nginx/html/index.html

COPY nginx-conf /etc/nginx/conf.d
{'fraction_non_alphanumeric': 0.16507936507936508, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 3.148026315789474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '1583199', 'n_tokens_mistral': 495, 'n_tokens_neox': 475, 'n_words': 98}