<commit_before>FROM maven:3.5.3-jdk-8 as builder

COPY . /build
WORKDIR /build
RUN mvn package -Dmaven.test.skip=true

FROM jetty:9-jre8-alpine as runner
USER jetty:jetty
COPY --from=builder ./build/target/cqf-ruler.war /var/lib/jetty/webapps/root.war
EXPOSE 8080
ENV JAVA_OPTIONS="-Dfhir.baseurl.r4=http://localhost:8080 -Dfhir.baseurl.dstu3=http://localhost:8080 -Dfhir.baseurl.dstu2=http://localhost:8080"

# Assumes the existence of a stu3 directory
# TODO: runtime mounting. Need to use gosu or similar to handle permisions correctly.
FROM runner as test-data
RUN mkdir -p /var/lib/jetty/target
COPY --chown=jetty:jetty ./target/stu3  /var/lib/jetty/target/stu3<commit_msg>Changed path to match expected 'cqf-ruler'<commit_after>FROM maven:3.5.3-jdk-8 as builder

COPY . /build
WORKDIR /build
RUN mvn package -Dmaven.test.skip=true

FROM jetty:9-jre8-alpine as runner
USER jetty:jetty
COPY --from=builder ./build/target/cqf-ruler.war /var/lib/jetty/webapps/cqf-ruler.war
EXPOSE 8080
ENV JAVA_OPTIONS="-Dfhir.baseurl.r4=http://localhost:8080/cqf-ruler -Dfhir.baseurl.dstu3=http://localhost:8080/cqf-ruler -Dfhir.baseurl.dstu2=http://localhost:8080/cqf-ruler"

# Assumes the existence of a stu3 directory
# TODO: runtime mounting. Need to use gosu or similar to handle permisions correctly.
FROM runner as test-data
RUN mkdir -p /var/lib/jetty/target
COPY --chown=jetty:jetty ./target/stu3  /var/lib/jetty/target/stu3
{'fraction_non_alphanumeric': 0.12535211267605634, 'fraction_numerical': 0.03943661971830986, 'mean_word_length': 4.382575757575758, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4897073', 'n_tokens_mistral': 582, 'n_tokens_neox': 548, 'n_words': 124}