<commit_before>FROM kbase/kb_jre:latest as build
RUN apt-get -y update && apt-get -y install ant git openjdk-8-jdk make
RUN cd / && git clone https://github.com/kbase/jars

ADD . /src
RUN cd /src && ant build
RUN find /src
FROM kbase/kb_jre:latest

# These ARGs values are passed in via the docker build command
ARG BUILD_DATE
ARG VCS_REF
ARG BRANCH=develop

COPY --from=build /src/deployment/ /kb/deployment/
COPY --from=build /src/jettybase/ /kb/deployment/jettybase/
COPY --from=build /src/dist/ /src/dist/
COPY --from=build /jars /jars

# The BUILD_DATE value seem to bust the docker cache when the timestamp changes, move to
# the end
LABEL org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.vcs-url="https://github.com/kbase/data_import_export.git" \
      org.label-schema.vcs-ref=$VCS_REF \
      org.label-schema.schema-version="1.0.0-rc1" \
      us.kbase.vcs-branch=$BRANCH \
      maintainer="<NAME> <EMAIL>"

WORKDIR /kb/deployment/jettybase<commit_msg>Update Dockerfile<commit_after>FROM kbase/kb_jre:latest as build
RUN apt-get -y update && apt-get -y install ant git openjdk-8-jdk make
RUN cd / && git clone https://github.com/kbase/jars

RUN cd /tmp/data_import_export && \
  ant compile && \
  ant buildwar

#ADD . /src
#RUN cd /src && ant build
#RUN find /src

FROM kbase/kb_jre:latest

# These ARGs values are passed in via the docker build command
ARG BUILD_DATE
ARG VCS_REF
ARG BRANCH=develop

COPY --from=build /src/deployment/ /kb/deployment/
COPY --from=build /src/jettybase/ /kb/deployment/jettybase/
COPY --from=build /src/dist/ /src/dist/
COPY --from=build /jars /jars

# The BUILD_DATE value seem to bust the docker cache when the timestamp changes, move to
# the end
LABEL org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.vcs-url="https://github.com/kbase/data_import_export.git" \
      org.label-schema.vcs-ref=$VCS_REF \
      org.label-schema.schema-version="1.0.0-rc1" \
      us.kbase.vcs-branch=$BRANCH \
      maintainer="<NAME> <EMAIL>"

WORKDIR /kb/deployment/jettybase
{'fraction_non_alphanumeric': 0.12702305051495832, 'fraction_numerical': 0.004904364884747425, 'mean_word_length': 3.3683083511777303, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '5055571', 'n_tokens_mistral': 751, 'n_tokens_neox': 737, 'n_words': 191}