<commit_before>FROM blitznote/debootstrap-amd64:16.04
MAINTAINER <NAME> <<EMAIL>>

ARG BUILD_DATE
ARG SOURCE_COMMIT
ARG DOCKERFILE_PATH
ARG SOURCE_TYPE

LABEL org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.docker.dockerfile="$DOCKERFILE_PATH/Dockerfile" \
      org.label-schema.license="Apache-2.0" \
      org.label-schema.name="iTunes and Roku streaming music server" \
      org.label-schema.url="https://github.com/double16/forked-daapd" \
      org.label-schema.vcs-ref=$SOURCE_COMMIT \
      org.label-schema.vcs-type="$SOURCE_TYPE" \
      org.label-schema.vcs-url="https://github.com/double16/forked-daapd.git"

RUN apt-get -q update &&\
  apt-get install -qy forked-daapd=23.3-1 avahi-daemon &&\
  apt-get clean &&\
  rm -rf /var/lib/apt/lists/* &&\
  rm -rf /tmp/*

VOLUME [ "/log", "/cache", "/media" ]
EXPOSE 3689

COPY forked-daapd.conf /etc/

ADD ./start.sh /start.sh
RUN chmod u+x  /start.sh

CMD ["/start.sh"]

HEALTHCHECK CMD nc -zv localhost 3689 || exit 1
<commit_msg>Add netcat for health check<commit_after>FROM blitznote/debootstrap-amd64:16.04
MAINTAINER <NAME> <<EMAIL>>

ARG BUILD_DATE
ARG SOURCE_COMMIT
ARG DOCKERFILE_PATH
ARG SOURCE_TYPE

LABEL org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.docker.dockerfile="$DOCKERFILE_PATH/Dockerfile" \
      org.label-schema.license="Apache-2.0" \
      org.label-schema.name="iTunes and Roku streaming music server" \
      org.label-schema.url="https://github.com/double16/forked-daapd" \
      org.label-schema.vcs-ref=$SOURCE_COMMIT \
      org.label-schema.vcs-type="$SOURCE_TYPE" \
      org.label-schema.vcs-url="https://github.com/double16/forked-daapd.git"

RUN apt-get -q update &&\
  apt-get install -qy forked-daapd=23.3-1 avahi-daemon netcat-openbsd &&\
  apt-get clean &&\
  rm -rf /var/lib/apt/lists/* &&\
  rm -rf /tmp/*

VOLUME [ "/log", "/cache", "/media" ]
EXPOSE 3689

COPY forked-daapd.conf /etc/

ADD ./start.sh /start.sh
RUN chmod u+x  /start.sh

CMD ["/start.sh"]

HEALTHCHECK CMD nc -zv localhost 3689 || exit 1

{'fraction_non_alphanumeric': 0.15531602155805976, 'fraction_numerical': 0.02449779519843214, 'mean_word_length': 3.2453222453222454, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '2669566', 'n_tokens_mistral': 842, 'n_tokens_neox': 796, 'n_words': 145}