<commit_before># http://phusion.github.io/baseimage-docker/#solution
FROM phusion/baseimage:latest
MAINTAINER <NAME> "<EMAIL>"

# update packages
RUN apt-get update &&\
    apt-get upgrade -y

# install requirements
RUN apt-get install -y\
    faad\
    flac\
    imagemagick\
    lame\
    mpg123\
    python3-pip\
    sqlite\
    vorbis-tools &&\
    rm -rf /var/lib/apt/lists/*

# set locale
RUN locale-gen en_US.UTF-8 &&\
    update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8

# I have to install it in seperate steps because cherrymusic wouldn't find cherrypy otherwise
RUN pip3 install cherrypy &&\
    mkdir /opt/cherrymusic &&\
    curl -L "https://github.com/devsnd/cherrymusic/archive/master.tar.gz" | tar xz --strip-components 1 --directory /opt/cherrymusic &&\
    ln -s /opt/cherrymusic/cherrymusic /usr/bin

# create user that runs cherrymusic
RUN useradd --create-home --shell /usr/bin/nologin cm
RUN su -s /bin/sh cm -c "mkdir -p ~/basedir \
    ~/.config/cherrymusic \
    ~/.local/share/cherrymusic"

EXPOSE 8080

# mount your music folder into the basedir (docker run -v /path/to/music:/home/cm/basedir)
# and do the same for the config and share folder
VOLUME /home/cm/basedir /home/cm/.config/cherrymusic /home/cm/.local/share/cherrymusic

USER    cm
ENV     HOME /home/cm
WORKDIR /home/cm
CMD [ "/bin/sh" "-c" "cherrymusic" ]<commit_msg>removed redundant `apt-get upgrade` and merged `apt-get update` with the requirement installation<commit_after># http://phusion.github.io/baseimage-docker/#solution
FROM phusion/baseimage:latest
MAINTAINER <NAME> "<EMAIL>"

# install requirements
RUN apt-get update &&\
    apt-get install -y\
    faad\
    flac\
    imagemagick\
    lame\
    mpg123\
    python3-pip\
    sqlite\
    vorbis-tools &&\
    rm -rf /var/lib/apt/lists/*

# set locale
RUN locale-gen en_US.UTF-8 &&\
    update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8

# I have to install it in seperate steps because cherrymusic wouldn't find cherrypy otherwise
RUN pip3 install cherrypy &&\
    mkdir /opt/cherrymusic &&\
    curl -L "https://github.com/devsnd/cherrymusic/archive/master.tar.gz" | tar xz --strip-components 1 --directory /opt/cherrymusic &&\
    ln -s /opt/cherrymusic/cherrymusic /usr/bin

# create user that runs cherrymusic
RUN useradd --create-home --shell /usr/bin/nologin cm
RUN su -s /bin/sh cm -c "mkdir -p ~/basedir \
    ~/.config/cherrymusic \
    ~/.local/share/cherrymusic"

EXPOSE 8080

# mount your music folder into the basedir (docker run -v /path/to/music:/home/cm/basedir)
# and do the same for the config and share folder
VOLUME /home/cm/basedir /home/cm/.config/cherrymusic /home/cm/.local/share/cherrymusic

USER    cm
ENV     HOME /home/cm
WORKDIR /home/cm
CMD     cherrymusic
{'fraction_non_alphanumeric': 0.12377138696760102, 'fraction_numerical': 0.009464870768110666, 'mean_word_length': 2.920114122681883, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2032371', 'n_tokens_mistral': 1030, 'n_tokens_neox': 960, 'n_words': 273}