<commit_before>FROM plone/plone:4.3.9

USER plone
COPY site.cfg /plone/instance/

USER root
# Para Pillow 2.7.0
RUN buildDeps="curl sudo python-setuptools python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-turbo-dev" \
 && apt-get update \
 && apt-get install -y --no-install-recommends $buildDeps \
 && sudo -u plone bin/buildout -c site.cfg -v -t 300 \
 && sudo -u plone pip install selenium \
 && SUDO_FORCE_REMOVE=yes apt-get purge -y --auto-remove $buildDeps \
 && apt-get install -y --no-install-recommends xserver-xephyr xvfb iceweasel \
 && rm -rf /var/lib/apt/lists/* \
 && rm -rf /plone/buildout-cache/downloads/* \
 && find /plone \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' +

USER plone


COPY xvfb /etc/init.d/
RUN chmod +x /etc/init.d/xvfb

RUN /etc/init.d/xvfb start
ENV DISPLAY :99.0
RUN firefox &<commit_msg>Update Dockerfile<commit_after>FROM plone/plone:4.3.9

USER plone
COPY site.cfg /plone/instance/

USER root
# Para Pillow 2.7.0
RUN buildDeps="curl sudo python-setuptools python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-turbo-dev" \
 && apt-get update \
 && apt-get install -y --no-install-recommends $buildDeps \
 && sudo -u plone bin/buildout -c site.cfg -v -t 300 \
 && pip install selenium \
 && SUDO_FORCE_REMOVE=yes apt-get purge -y --auto-remove $buildDeps \
 && apt-get install -y --no-install-recommends xserver-xephyr xvfb iceweasel \
 && rm -rf /var/lib/apt/lists/* \
 && rm -rf /plone/buildout-cache/downloads/* \
 && find /plone \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' +

COPY xvfb /etc/init.d/
RUN chmod +x /etc/init.d/xvfb

USER plone
ENV DISPLAY :99.0
RUN /etc/init.d/xvfb start
RUN firefox &
{'fraction_non_alphanumeric': 0.156, 'fraction_numerical': 0.019428571428571427, 'mean_word_length': 2.9795454545454545, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4867318', 'n_tokens_mistral': 740, 'n_tokens_neox': 696, 'n_words': 186}