<commit_before>FROM kbase/sdkbase2:latest as build


COPY . /tmp/narrative_method_store
COPY deployment /kb/deployment

RUN mkdir -p /kb/deployment/services/narrative_method_store && \
    pip install configobj && \
    cd /tmp/narrative_method_store && \
    make compile deploy-service

FROM kbase/kb_jre:latest
# These ARGs values are passed in via the docker build command
ARG BUILD_DATE
ARG VCS_REF
ARG BRANCH 
ENV KB_DEPLOYMENT_CONFIG "/kb/deployment/conf/deployment.cfg"

COPY --from=build /kb/deployment /kb/deployment/

LABEL org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.vcs-url="https://github.com/kbase/narrative_method_store.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>"

EXPOSE 7058
ENTRYPOINT [ "/kb/deployment/bin/dockerize" ]
CMD [ "-template", "/kb/deployment/conf/.templates/deployment.cfg.templ:/kb/deployment/conf/deployment.cfg", \<commit_msg>Add make target to build server code<commit_after>FROM kbase/sdkbase2:latest as build


COPY . /tmp/narrative_method_store
COPY deployment /kb/deployment

RUN mkdir -p /kb/deployment/services/narrative_method_store && \
    pip install configobj && \
    cd /tmp/narrative_method_store && \
    make compile build-bin deploy-service

FROM kbase/kb_jre:latest
# These ARGs values are passed in via the docker build command
ARG BUILD_DATE
ARG VCS_REF
ARG BRANCH 
ENV KB_DEPLOYMENT_CONFIG "/kb/deployment/conf/deployment.cfg"

COPY --from=build /kb/deployment /kb/deployment/

LABEL org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.vcs-url="https://github.com/kbase/narrative_method_store.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>"

EXPOSE 7058
ENTRYPOINT [ "/kb/deployment/bin/dockerize" ]
CMD [ "-template", "/kb/deployment/conf/.templates/deployment.cfg.templ:/kb/deployment/conf/deployment.cfg", \
{'fraction_non_alphanumeric': 0.12627986348122866, 'fraction_numerical': 0.008776206728425159, 'mean_word_length': 3.7832167832167833, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3243713', 'n_tokens_mistral': 750, 'n_tokens_neox': 724, 'n_words': 131}