<commit_before>FROM buildpack-deps:bionic-scm

ENV APP_DIR /srv/app

# Set up common env variables
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV DEBIAN_FRONTEND=noninteractive

RUN adduser --disabled-password --gecos "Default Jupyter user" jovyan
RUN install -d -o jovyan -g jovyan ${APP_DIR}

# Set up extra debian repositories we want
COPY neuro-debian.list /etc/apt/sources.list.d/neuro-debian.list
COPY neurodebian-key.asc /tmp/neurodebian-key.asc
RUN apt-key add /tmp/neurodebian-key.asc

COPY nodesource.list /etc/apt/sources.list.d/nodesource.list
COPY nodesource-key.asc /tmp/nodesource-key.asc
RUN apt-key add /tmp/nodesource-key.asc

# TODO: remove me when apt can find our packages
RUN echo 172.16.31.10  security.ubuntu.com >> /etc/hosts
RUN echo 192.168.3.11  archive.ubuntu.com >> /etc/hosts

RUN apt-get -qq update --yes
RUN apt-get -qq install --yes \
            python3.6 \
            python3.6-venv \
            python3.6-dev \
            tar \
            vim \
            nodejs \
            locales > /dev/null

RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
    locale-gen

# for nbconvert<commit_msg>Do not cache apt-get update docker layer.<commit_after>FROM buildpack-deps:bionic-scm

ENV APP_DIR /srv/app

# Set up common env variables
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV DEBIAN_FRONTEND=noninteractive

RUN adduser --disabled-password --gecos "Default Jupyter user" jovyan
RUN install -d -o jovyan -g jovyan ${APP_DIR}

# Set up extra debian repositories we want
COPY neuro-debian.list /etc/apt/sources.list.d/neuro-debian.list
COPY neurodebian-key.asc /tmp/neurodebian-key.asc
RUN apt-key add /tmp/neurodebian-key.asc

COPY nodesource.list /etc/apt/sources.list.d/nodesource.list
COPY nodesource-key.asc /tmp/nodesource-key.asc
RUN apt-key add /tmp/nodesource-key.asc

# TODO: remove me when apt can find our packages
#RUN echo 172.16.31.10  security.ubuntu.com >> /etc/hosts
#RUN echo 192.168.3.11  archive.ubuntu.com >> /etc/hosts

RUN apt-get -qq update --yes && \
    apt-get -qq install --yes \
            python3.6 \
            python3.6-venv \
            python3.6-dev \
            tar \
            vim \
            nodejs \
            locales > /dev/null

RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
    locale-gen

# for nbconvert
{'fraction_non_alphanumeric': 0.11396343835083625, 'fraction_numerical': 0.022559315441462467, 'mean_word_length': 2.6072931276297333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6421505', 'n_tokens_mistral': 1004, 'n_tokens_neox': 926, 'n_words': 242}