<commit_before>FROM ubuntu:16.04

# Locale
RUN locale-gen ja_JP.UTF-8 en_US.UTF-8

# Update Apt Packages
RUN apt-get update && apt-get -qy upgrade

# Add Oracle Java Repo
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list.d/webupd8team-java.list \
  && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 \
  && echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections

# Install Apt Packages
RUN apt-get update && apt-get install -y \
  ca-certificates \
  locales \
  oracle-java8-installer \
  oracle-java8-set-default \
  unzip \
  curl \
  ffmpeg \
  lame

# Get Subsonic stand-alone package
ENV SUBSONIC_HOME /var/subsonic
ENV PKG_VER 6.0

RUN mkdir ${SUBSONIC_HOME}
RUN curl http://subsonic.org/download/subsonic-${PKG_VER}-standalone.tar.gz \
  | tar zx -C ${SUBSONIC_HOME}/

# Link transcoders
ENV SUBSONIC_TRANSCODE_FOLDER ${SUBSONIC_HOME}/transcode
RUN mkdir -p ${SUBSONIC_TRANSCODE_FOLDER} && \
  ln -fs /usr/bin/ffmpeg /usr/bin/lame ${SUBSONIC_TRANSCODE_FOLDER}

# Mount external volume
ENV SUBSONIC_MUSIC_FOLDER /mnt/media/Music
ENV SUBSONIC_PODCAST_FOLDER /mnt/media/Podcast
ENV SUBSONIC_PLAYLIST_FOLDER /mnt/media/Playlists
VOLUME ${SUBSONIC_MUSIC_FOLDER}
VOLUME ${SUBSONIC_PODCAST_FOLDER}
VOLUME ${SUBSONIC_PLAYLIST_FOLDER}

# Expose http
EXPOSE 4040

# Entry point
ADD ./launch_subsonic.sh /launch_subsonic.sh
RUN chmod +x  /launch_subsonic.sh<commit_msg>Change steps of adding Java repo.<commit_after>FROM ubuntu:16.04

# Locale
RUN locale-gen ja_JP.UTF-8 en_US.UTF-8

# Update Apt Packages
RUN apt-get update && apt-get -qy upgrade

# Install Apt Packages
RUN apt-get update && apt-get install -y \
  software-properties-common \
  python-software-properties \
  ca-certificates \
  locales \
  unzip \
  curl \
  ffmpeg \
  lame

# Add Oracle Java Repo
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true \
  | /usr/bin/debconf-set-selections
RUN add-apt-repository ppa:webupd8team/java && \
  apt-get update && apt-get install -y \
  oracle-java8-installer \
  oracle-java8-set-default

# Get Subsonic stand-alone package
ENV SUBSONIC_HOME /var/subsonic
ENV PKG_VER 6.0

RUN mkdir ${SUBSONIC_HOME}
RUN curl http://subsonic.org/download/subsonic-${PKG_VER}-standalone.tar.gz \
  | tar zx -C ${SUBSONIC_HOME}/

# Link transcoders
ENV SUBSONIC_TRANSCODE_FOLDER ${SUBSONIC_HOME}/transcode
RUN mkdir -p ${SUBSONIC_TRANSCODE_FOLDER} && \
  ln -fs /usr/bin/ffmpeg /usr/bin/lame ${SUBSONIC_TRANSCODE_FOLDER}

# Mount external volume
ENV SUBSONIC_MUSIC_FOLDER /mnt/media/Music
ENV SUBSONIC_PODCAST_FOLDER /mnt/media/Podcast
ENV SUBSONIC_PLAYLIST_FOLDER /mnt/media/Playlists
VOLUME ${SUBSONIC_MUSIC_FOLDER}
VOLUME ${SUBSONIC_PODCAST_FOLDER}
VOLUME ${SUBSONIC_PLAYLIST_FOLDER}

# Expose http
EXPOSE 4040

# Entry point
ADD ./launch_subsonic.sh /launch_subsonic.sh
RUN chmod +x  /launch_subsonic.sh
{'fraction_non_alphanumeric': 0.10735989196488858, 'fraction_numerical': 0.014854827819041188, 'mean_word_length': 4.117443868739206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '553772', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1205, 'n_words': 244}