<commit_before>FROM java:8-alpine

RUN wget http://apache.cs.uu.nl/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
RUN tar -zxvf apache-maven-3.3.9-bin.tar.gz
RUN rm apache-maven-3.3.9-bin.tar.gz
RUN mv apache-maven-3.3.9 /usr/lib/mvn

ENV M2_HOME=/usr/lib/mvn
ENV M2=$M2_HOME/bin
ENV PATH $PATH:$M2_HOME:$M2

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY . /usr/src/app

RUN mvn package

EXPOSE 8080
EXPOSE 8081

ENTRYPOINT java -jar target/MusicMeterParser.jar server<commit_msg>New Dockerfile for smaller image<commit_after>FROM maven:3.5-jdk-8-alpine as BUILD

RUN mkdir -p /usr/src/app

COPY src /usr/src/app/src
COPY pom.xml /usr/src/app
RUN mvn -f /usr/src/app/pom.xml clean package

FROM openjdk:8-jre-alpine
 
COPY --from=BUILD /usr/src/app/target/MusicMeterParser.jar /usr/src/app/MusicMeterParser.jar

EXPOSE 8080
EXPOSE 8081

ENTRYPOINT java -jar /usr/src/app/MusicMeterParser.jar server
{'fraction_non_alphanumeric': 0.1341330425299891, 'fraction_numerical': 0.04580152671755725, 'mean_word_length': 3.59, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '588282', 'n_tokens_mistral': 427, 'n_tokens_neox': 390, 'n_words': 81}