<commit_before>FROM openjdk:8-jre-alpine

MAINTAINER <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME>

COPY target/nevergreen-standalone.jar /home/nevergreen-standalone.jar

EXPOSE 5000

CMD ["java", "-jar", "/home/nevergreen-standalone.jar"]
<commit_msg>Run in Docker as a non-root user<commit_after>FROM openjdk:8-jre-alpine

MAINTAINER <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME>

RUN adduser -D -g '' nevergreenuser

USER nevergreenuser

WORKDIR /home/nevergreenuser

COPY target/nevergreen-standalone.jar nevergreen-standalone.jar

EXPOSE 5000

CMD java \
    -Duser.timezone="UTC" \
    -XX:+UnlockExperimentalVMOptions \
    -XX:+UseCGroupMemoryLimitForHeap \
    -XX:MaxRAMFraction=1 \
    -jar "nevergreen-standalone.jar"

{'fraction_non_alphanumeric': 0.15263157894736842, 'fraction_numerical': 0.014473684210526316, 'mean_word_length': 4.67910447761194, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '3562603', 'n_tokens_mistral': 299, 'n_tokens_neox': 283, 'n_words': 57}