<commit_before>#
# Sim City Webservice base image.
#
# This docker image should not be run as is, but used as a base
# for a webservice image with a config.ini
FROM phusion/baseimage:0.9.19
MAINTAINER <NAME> <<EMAIL>>

# Keep ssh running
RUN rm -f /etc/service/sshd/down
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh

# install requirements
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \
  apt-get install -y python python-dev python-pip git build-essential curl && \
  pip install virtualenv

RUN /usr/sbin/useradd -p $(openssl passwd simcity) -d /home/simcity -m --shell /bin/bash simcity

COPY . /home/simcity/sim-city-webservice

RUN chown -R simcity:simcity /home/simcity

USER simcity
WORKDIR /home/simcity/sim-city-webservice

RUN virtualenv env \
  && . env/bin/activate \
  && pip install -U pip \
  && pip install -r requirements.txt

COPY run /etc/service/webservice/

EXPOSE 9090
USER root
CMD ["/sbin/my_init"]
<commit_msg>added back java to the dockerfile<commit_after>#
# Sim City Webservice base image.
#
# This docker image should not be run as is, but used as a base
# for a webservice image with a config.ini
FROM phusion/baseimage:0.9.19
MAINTAINER <NAME> <<EMAIL>>

# Keep ssh running
RUN rm -f /etc/service/sshd/down
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh

# install requirements
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \
  apt-get install -y openjdk-8-jre python python-dev python-pip git build-essential curl && \
  pip install virtualenv

RUN /usr/sbin/useradd -p $(openssl passwd simcity) -d /home/simcity -m --shell /bin/bash simcity

COPY . /home/simcity/sim-city-webservice

RUN chown -R simcity:simcity /home/simcity

USER simcity
WORKDIR /home/simcity/sim-city-webservice

RUN virtualenv env \
  && . env/bin/activate \
  && pip install -U pip \
  && pip install -r requirements.txt

COPY run /etc/service/webservice/

EXPOSE 9090
USER root
CMD ["/sbin/my_init"]

{'fraction_non_alphanumeric': 0.11740890688259109, 'fraction_numerical': 0.01062753036437247, 'mean_word_length': 3.503416856492027, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2513613', 'n_tokens_mistral': 722, 'n_tokens_neox': 688, 'n_words': 220}