<commit_before>FROM maven:3-jdk-8

MAINTAINER phithon <<EMAIL>>

COPY src/ /usr/src/

WORKDIR /usr/src

RUN cd /usr/src; \
    mvn clean install

CMD ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "./target/demo-0.0.1-SNAPSHOT.jar"]
<commit_msg>reduce spring security oauth2 2.0.8 image size<commit_after>FROM maven:3-jdk-8 AS builder

LABEL maintainer="phithon <<EMAIL>>"

COPY src/ /usr/src/

WORKDIR /usr/src

RUN cd /usr/src; \
    mvn clean install

# production
FROM openjdk:8-jre

COPY --from=builder /usr/src/target/demo-0.0.1-SNAPSHOT.jar /spring-security-oauth2-0.0.1-SNAPSHOT.jar

CMD ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/spring-security-oauth2-0.0.1-SNAPSHOT.jar"]
{'fraction_non_alphanumeric': 0.18207282913165265, 'fraction_numerical': 0.03221288515406162, 'mean_word_length': 3.5833333333333335, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7447', 'n_tokens_mistral': 310, 'n_tokens_neox': 305, 'n_words': 57}