<commit_before># Have tested with a custom Ubuntu-1804 / Python 3.7 / Tensorflow 2.5.0 Base Image
# Not tested with this image. 
FROM tensorflow/tensorflow:latest
RUN apt-get install git -y

WORKDIR /app/
COPY . /app/
RUN git clone https://github.com/kingoflolz/mesh-transformer-jax && \
    pip install -r mesh-transformer-jax/requirements.txt && \
    pip install mesh-transformer-jax/ jax==0.2.12 && \
    pip install fastapi uvicorn requests aiofiles aiohttp && \
    ln -s /app/start.sh /start.sh

ENV PYTHONPATH /app:/app/mesh-transformer-jax:/usr/local/bin/python3
ENV PATH $PYTHONPATH:$PATH
ENV TOKENIZERS_PARALLELISM=true
EXPOSE 80

CMD ["/start.sh"]<commit_msg>Dockerfile requires apt update before git install (#111)<commit_after># Have tested with a custom Ubuntu-1804 / Python 3.7 / Tensorflow 2.5.0 Base Image
# Not tested with this image. 
FROM tensorflow/tensorflow:2.5.0
RUN apt update && \
    apt-get install git -y

WORKDIR /app/
COPY . /app/
RUN git clone https://github.com/kingoflolz/mesh-transformer-jax && \
    pip install -r mesh-transformer-jax/requirements.txt && \
    pip install mesh-transformer-jax/ jax==0.2.12 && \
    pip install fastapi uvicorn requests aiofiles aiohttp && \
    ln -s /app/start.sh /start.sh

ENV PYTHONPATH /app:/app/mesh-transformer-jax:/usr/local/bin/python3
ENV PATH $PYTHONPATH:$PATH
ENV TOKENIZERS_PARALLELISM=true
EXPOSE 80

CMD ["/start.sh"]
{'fraction_non_alphanumeric': 0.11965811965811966, 'fraction_numerical': 0.027065527065527065, 'mean_word_length': 3.4603174603174605, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5170442', 'n_tokens_mistral': 533, 'n_tokens_neox': 488, 'n_words': 136}