<commit_before>FROM java:8-jre
MAINTAINER <NAME>

RUN groupadd -r rapidoid && useradd -r -g rapidoid rapidoid

ENV RAPIDOID_HOME=/usr/local/rapidoid RAPIDOID_BASE=/var/lib/rapidoid RAPIDOID_RUN=/run/rapidoid TMPDIR=/tmp/rapidoid

RUN set -xe \
 && mkdir -p "$RAPIDOID_HOME" "$RAPIDOID_BASE" "$RAPIDOID_RUN" "$TMPDIR" \
 && chown -R rapidoid:rapidoid "$RAPIDOID_RUN" "$TMPDIR" "$RAPIDOID_BASE"

RUN echo '#!/usr/bin/env bash' > /usr/local/bin/rapidoid \
 && echo 'java -Djava.io.tmpdir=/tmp/rapidoid -cp /usr/local/rapidoid/rapidoid.jar:/app:/app/* org.rapidoid.main.Main path=/app $@' >> /usr/local/bin/rapidoid \
 && chmod ugo+x /usr/local/bin/rapidoid

ADD rapidoid.jar /usr/local/rapidoid/rapidoid.jar

WORKDIR $RAPIDOID_BASE

EXPOSE 8080

USER rapidoid

CMD ["rapidoid"]<commit_msg>Optimized Dockerfile.<commit_after>FROM java:8-jre
MAINTAINER <NAME>

RUN groupadd -r rapidoid && useradd -r -g rapidoid rapidoid

ENV RAPIDOID_HOME=/usr/local/rapidoid RAPIDOID_BASE=/var/lib/rapidoid RAPIDOID_RUN=/run/rapidoid TMPDIR=/tmp/rapidoid

RUN set -xe \
 && mkdir -p "$RAPIDOID_HOME" "$RAPIDOID_BASE" "$RAPIDOID_RUN" "$TMPDIR" \
 && chown -R rapidoid:rapidoid "$RAPIDOID_RUN" "$TMPDIR" "$RAPIDOID_BASE"

RUN echo '#!/usr/bin/env bash' > /usr/local/bin/rapidoid \
 && echo 'java -Djava.io.tmpdir=/tmp/rapidoid -cp /usr/local/rapidoid/rapidoid.jar:/app:/app/* org.rapidoid.main.Main path=/app $@' >> /usr/local/bin/rapidoid \
 && chmod ugo+x /usr/local/bin/rapidoid

WORKDIR $RAPIDOID_BASE
EXPOSE 8080
USER rapidoid
CMD ["rapidoid"]

ADD rapidoid.jar /usr/local/rapidoid/rapidoid.jar
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.0063411540900443885, 'mean_word_length': 4.479166666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '461399', 'n_tokens_mistral': 707, 'n_tokens_neox': 661, 'n_words': 120}