<commit_before>FROM debian
RUN apt update && \
    apt install -y curl jq unzip postgresql-client && \
    apt autoremove && apt clean

ARG VERSION="latest"
ARG FILE="tegola_linux_amd64.zip"

RUN curl -L -H 'Accept:application/octet-stream' \
    `curl -H "Accept: application/vnd.github.v3.raw" -s https://api.github.com/repos/go-spatial/tegola/releases/$VERSION | jq -r ".assets | map(select(.name == \"$FILE\"))[0].browser_download_url"` --output /tmp/$FILE && \
    unzip /tmp/$FILE -d /usr/bin && \
    rm /tmp/$FILE && \
    chmod +x /usr/bin/tegola

ADD config.toml /app/config.toml

COPY wait-for-it.sh /

ENV CONFIG=/app/config.toml

CMD tegola --config $CONFIG serve<commit_msg>fix(tiles): force tegola 0.7.0 for now<commit_after>FROM debian
RUN apt update && \
    apt install -y curl jq unzip postgresql-client && \
    apt autoremove && apt clean

# ARG VERSION="latest"
ARG VERSION="v0.7.0"
ARG FILE="tegola_linux_amd64.zip"

RUN curl -L -H 'Accept:application/octet-stream' \
    `test "$VERSION" = latest && curl -H "Accept: application/vnd.github.v3.raw" -s https://api.github.com/repos/go-spatial/tegola/releases/$VERSION | jq -r ".assets | map(select(.name == \"$FILE\"))[0].browser_download_url" || echo https://github.com/go-spatial/tegola/releases/download/$VERSION/tegola_linux_amd64.zip` \
    --output /tmp/$FILE && \
    unzip /tmp/$FILE -d /usr/bin && \
    rm /tmp/$FILE && \
    chmod +x /usr/bin/tegola

ADD config.toml /app/config.toml

COPY wait-for-it.sh /

ENV CONFIG=/app/config.toml

CMD tegola --config $CONFIG serve
{'fraction_non_alphanumeric': 0.16806181584030908, 'fraction_numerical': 0.0103026400515132, 'mean_word_length': 3.2, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4692481', 'n_tokens_mistral': 602, 'n_tokens_neox': 578, 'n_words': 129}