<commit_before>FROM phusion/baseimage

# How to install OpenJDK 8 from:
# http://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts/
RUN add-apt-repository ppa:openjdk-r/ppa

# How to install sbt on Linux from:
# http://www.scala-sbt.org/release/tutorial/Installing-sbt-on-Linux.html
RUN echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823

RUN apt-get update
RUN apt-get install -qy openjdk-8-jdk sbt

# Standard apt-get cleanup.
RUN apt-get -yq autoremove && \
    apt-get -yq clean && \
    rm -rf /var/lib/apt/lists/* && \
    rm -rf /tmp/* && \
    rm -rf /var/tmp/*

# Actually download sbt
RUN sbt version

EXPOSE 8080

RUN mkdir /app
WORKDIR /app

# Grab dependencies.
COPY build.sbt build.sbt
COPY project/plugins.sbt project/plugins.sbt
RUN sbt compile

# Compile first to cache it.
COPY src/main src/main
COPY src/test src/test
RUN sbt compile

RUN sbt assembly

COPY src/docker/run.sh /etc/service/orch/run
<commit_msg>copy all files in project/ when building docker image (#378)<commit_after>FROM phusion/baseimage

# How to install OpenJDK 8 from:
# http://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts/
RUN add-apt-repository ppa:openjdk-r/ppa

# How to install sbt on Linux from:
# http://www.scala-sbt.org/release/tutorial/Installing-sbt-on-Linux.html
RUN echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823

RUN apt-get update
RUN apt-get install -qy openjdk-8-jdk sbt

# Standard apt-get cleanup.
RUN apt-get -yq autoremove && \
    apt-get -yq clean && \
    rm -rf /var/lib/apt/lists/* && \
    rm -rf /tmp/* && \
    rm -rf /var/tmp/*

# Actually download sbt
RUN sbt version

EXPOSE 8080

RUN mkdir /app
WORKDIR /app

# Grab dependencies.
COPY build.sbt build.sbt
COPY project/* project/
RUN sbt compile

# Compile first to cache it.
COPY src/main src/main
COPY src/test src/test
RUN sbt compile

RUN sbt assembly

COPY src/docker/run.sh /etc/service/orch/run

{'fraction_non_alphanumeric': 0.13077634011090572, 'fraction_numerical': 0.028188539741219962, 'mean_word_length': 3.123809523809524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '2421137', 'n_tokens_mistral': 897, 'n_tokens_neox': 817, 'n_words': 221}