<commit_before>FROM openjdk:8-jdk

LABEL maintainer="<EMAIL>"

# For which target within the repository to build? If empty, uses the latest
# release. Otherwise, the branch, or tag, for which to build the container.
ARG TARGET

# name and Github repository
ARG APPNAME=phenoscape-kb-services
ARG REPO=phenoscape/phenoscape-kb-services

# create designated non-root system user and group
ARG APP_USER=phenoscape
ARG APP_GROUP=phenoscape

# where to install within the container
ARG APP_PREFIX=/usr/share/phenoscape

# Prevent error messages from debconf about non-interactive frontend
ARG TERM=linux
ARG DEBIAN_FRONTEND=noninteractive

ADD create-user.sh /usr/local/bin/create-service-user
RUN chmod ug+x /usr/local/bin/create-service-user
RUN create-service-user $APP_USER $APP_GROUP

# Install dependencies of sbt
RUN apt-get update -y && \
    apt-get install -y apt-utils && \
    apt-get install -y \
            apt-transport-https \
            fakeroot

# Install sbt (Scala Build Tool) through its Debian package directory.
RUN echo "deb https://dl.bintray.com/sbt/debian /" > \
         /etc/apt/sources.list.d/sbt.list && \
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
                --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823

RUN apt-get update -y && \
    apt-get install -y   \
            sbt

# Download and unpack application from the requested tag or branch on Github
ADD get-tarball-url.sh /tmp/get-tarball-url.sh
RUN echo \
    "Building $APPNAME from "$(sh /tmp/get-tarball-url.sh $REPO $TARGET) && \
    curl -L -o /tmp/$APPNAME.tar.gz \
         $(sh /tmp/get-tarball-url.sh $REPO $TARGET) && \
    mkdir /tmp/$APPNAME && \
    tar -z -x -v --strip-components 1 -C /tmp/$APPNAME -f /tmp/$APPNAME.tar.gz

# Build application (using sbt)
RUN cd /tmp/$APPNAME && \
    sbt stage

# then install to /usr/share, adding a symlink to /usr/local/bin, and<commit_msg>Fix SBT retrieval in Docker file.<commit_after>FROM openjdk:8-jdk

LABEL maintainer="<EMAIL>"

# For which target within the repository to build? If empty, uses the latest
# release. Otherwise, the branch, or tag, for which to build the container.
ARG TARGET

# name and Github repository
ARG APPNAME=phenoscape-kb-services
ARG REPO=phenoscape/phenoscape-kb-services

# create designated non-root system user and group
ARG APP_USER=phenoscape
ARG APP_GROUP=phenoscape

# where to install within the container
ARG APP_PREFIX=/usr/share/phenoscape

# Prevent error messages from debconf about non-interactive frontend
ARG TERM=linux
ARG DEBIAN_FRONTEND=noninteractive

ADD create-user.sh /usr/local/bin/create-service-user
RUN chmod ug+x /usr/local/bin/create-service-user
RUN create-service-user $APP_USER $APP_GROUP

# Install dependencies of sbt
RUN apt-get update -y && \
    apt-get install -y apt-utils && \
    apt-get install -y \
            apt-transport-https \
            fakeroot

# Install sbt (Scala Build Tool) through its Debian package directory.
RUN echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" > \
         /etc/apt/sources.list.d/sbt.list && \
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
                --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823

RUN apt-get update -y && \
    apt-get install -y   \
            sbt

# Download and unpack application from the requested tag or branch on Github
ADD get-tarball-url.sh /tmp/get-tarball-url.sh
RUN echo \
    "Building $APPNAME from "$(sh /tmp/get-tarball-url.sh $REPO $TARGET) && \
    curl -L -o /tmp/$APPNAME.tar.gz \
         $(sh /tmp/get-tarball-url.sh $REPO $TARGET) && \
    mkdir /tmp/$APPNAME && \
    tar -z -x -v --strip-components 1 -C /tmp/$APPNAME -f /tmp/$APPNAME.tar.gz

# Build application (using sbt)
RUN cd /tmp/$APPNAME && \
    sbt stage

# then install to /usr/share, adding a symlink to /usr/local/bin, and
{'fraction_non_alphanumeric': 0.10911458333333333, 'fraction_numerical': 0.015625, 'mean_word_length': 3.0177824267782425, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '2176274', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1281, 'n_words': 386}