<commit_before>FROM sunteya/puma:20200211-ruby26

# SSH
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh

# App
RUN apt update # 20200211
RUN apt install -y ghostscript ffmpeg
RUN apt install -y libxtst6 libnss3 libxss1 libgconf-2-4 libatk1.0 libxtst6 libgtk-3-0 libatk-bridge2.0-dev
RUN apt install -y fonts-noto-cjk
COPY policy.xml /etc/ImageMagick-6/policy.xml
RUN apt install -y link-grammar liblink-grammar-dev

# Passenger and Nginx
COPY nginx-site-default.conf /etc/nginx/sites-available/default
RUN echo "" > /etc/nginx/passenger.conf
RUN mv /etc/logrotate.d/nginx /etc/logrotate.d/nginx.disabled \
 && mv /etc/logrotate.d/app /etc/logrotate.d/app.disabled \
 && touch /etc/service/nginx/down \
 && touch /etc/service/nginx-log-forwarder/down \
 && touch /etc/service/puma/down \
 && touch /etc/service/puma/log/down

# Allow app can login for SSH
RUN passwd -u app

# Cleanup
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
<commit_msg>leaf: add libvips<commit_after>FROM sunteya/puma:20200211-ruby26

# SSH
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh

# App
RUN apt update # 20200211
RUN apt install -y ghostscript ffmpeg
RUN apt install -y libxtst6 libnss3 libxss1 libgconf-2-4 libatk1.0 libxtst6 libgtk-3-0 libatk-bridge2.0-dev
RUN apt install -y fonts-noto-cjk
COPY policy.xml /etc/ImageMagick-6/policy.xml
RUN apt install -y link-grammar liblink-grammar-dev
RUN apt install -y libvips

# Passenger and Nginx
COPY nginx-site-default.conf /etc/nginx/sites-available/default
RUN echo "" > /etc/nginx/passenger.conf
RUN mv /etc/logrotate.d/nginx /etc/logrotate.d/nginx.disabled \
 && mv /etc/logrotate.d/app /etc/logrotate.d/app.disabled \
 && touch /etc/service/nginx/down \
 && touch /etc/service/nginx-log-forwarder/down \
 && touch /etc/service/puma/down \
 && touch /etc/service/puma/log/down

# Allow app can login for SSH
RUN passwd -u app

# Cleanup
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

{'fraction_non_alphanumeric': 0.1291645310097386, 'fraction_numerical': 0.033828805740645826, 'mean_word_length': 3.5290023201856147, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2044809', 'n_tokens_mistral': 809, 'n_tokens_neox': 760, 'n_words': 177}