<commit_before>FROM phusion/passenger-ruby22:0.9.18

# Set correct environment variables.
ENV HOME /root
# Use baseimage-docker's init process.
CMD ["/sbin/my_init"]

# Enable nginx + passenger
RUN rm -f /etc/service/nginx/down

# Get PInW
USER app
WORKDIR /home/app
RUN git clone https://github.com/AlgoLab/pinw
RUN mkdir data
WORKDIR /home/app/pinw
ENV RACK_ENV production

USER root
RUN bundle install

# New crontab:
USER root
COPY crontab /etc/crontab
COPY update-pinw.sh /usr/local/bin/update_pinw.sh
# Pinw cron jobs:
USER app
RUN whenever -w

# Add configuration to nginx:
USER root
RUN rm /etc/nginx/sites-enabled/default
COPY nginx-pinw.conf /etc/nginx/sites-enabled/pinw.conf

COPY init-ssh.sh /etc/my_init.d/init-ssh.sh

EXPOSE 80

COPY inituidgid.sh /usr/local/sbin
RUN  chmod u+x /usr/local/sbin/inituidgid.sh
<commit_msg>UID and GUID must be fixed at runtime<commit_after>FROM phusion/passenger-ruby22:0.9.18

# Set correct environment variables.
ENV HOME /root
# Use baseimage-docker's init process.
CMD ["/sbin/my_init"]

# Enable nginx + passenger
RUN rm -f /etc/service/nginx/down
RUN apt-get update
RUN apt-get install sqlite3
RUN apt-get upgrade

# Get PInW
USER app
WORKDIR /home/app
RUN git clone https://github.com/AlgoLab/pinw
RUN mkdir data
WORKDIR /home/app/pinw
ENV RACK_ENV production

USER root
RUN bundle install

# New crontab:
USER root
COPY crontab /etc/crontab
COPY update-pinw.sh /usr/local/bin/update_pinw.sh
# Pinw cron jobs:
USER app
RUN whenever -w

# Add configuration to nginx:
USER root
RUN rm /etc/nginx/sites-enabled/default
COPY nginx-pinw.conf /etc/nginx/sites-enabled/pinw.conf

COPY init-ssh.sh /etc/my_init.d/init-ssh.sh

EXPOSE 80

COPY inituidgid.sh /usr/local/sbin

{'fraction_non_alphanumeric': 0.09953434225844005, 'fraction_numerical': 0.00989522700814901, 'mean_word_length': 3.8974358974358974, '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': '460680', 'n_tokens_mistral': 684, 'n_tokens_neox': 635, 'n_words': 187}