<commit_before>FROM jupyter/minimal-notebook:latest

MAINTAINER <NAME>

# Create ipython user with UID=1001 
USER root 

ENV NB_UID 1001
ENV NB_USER ipython

RUN useradd -m -s /bin/bash -u $NB_UID -U $NB_USER
RUN chown -R $NB_USER:$NB_USER /opt/conda

# Setup datascience home directory
USER $NB_USER

RUN mkdir /home/$NB_USER/work && \ 
    mkdir /home/$NB_USER/data && \ 
    mkdir /home/$NB_USER/.jupyter && \
    mkdir /home/$NB_USER/.local && \
    echo "cacert=/etc/ssl/certs/ca-certificates.crt" > /home/$NB_USER/.curlrc

# Configure container startup as root
USER root

EXPOSE 8888
WORKDIR /home/$NB_USER
ENTRYPOINT ["tini", "--"]
CMD ["start-notebook.sh"]

RUN cp /home/jovyan/.jupyter/jupyter_notebook_config.py /home/$NB_USER/.jupyter/
RUN chown -R $NB_USER:users /home/$NB_USER/.jupyter
<commit_msg>Update Dockerfile<commit_after>FROM jupyter/minimal-notebook:latest

MAINTAINER <NAME>

# Create ipython user with UID=1001 
USER root 

ENV NB_UID 1001
ENV NB_USER ipython

RUN useradd -m -s /bin/bash -u $NB_UID -U $NB_USER
RUN chown -R $NB_USER:$NB_USER /opt/conda

# Setup datascience home directory
USER $NB_USER

RUN mkdir /home/$NB_USER/.jupyter && \
    mkdir /home/$NB_USER/.local && \
    echo "cacert=/etc/ssl/certs/ca-certificates.crt" > /home/$NB_USER/.curlrc

# Configure container startup as root
USER root

EXPOSE 8888
WORKDIR /home/$NB_USER
ENTRYPOINT ["tini", "--"]
CMD ["start-notebook.sh"]

RUN cp /home/jovyan/.jupyter/jupyter_notebook_config.py /home/$NB_USER/.jupyter/
RUN chown -R $NB_USER:users /home/$NB_USER/.jupyter

{'fraction_non_alphanumeric': 0.13256113256113256, 'fraction_numerical': 0.015444015444015444, 'mean_word_length': 3.7408536585365852, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '1177550', 'n_tokens_mistral': 684, 'n_tokens_neox': 614, 'n_words': 143}