Skip to content

Commit

Permalink
Regroup commands in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuschl committed Jan 8, 2023
1 parent 6827071 commit 42b8f4b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM ubuntu:latest
LABEL version="1.0" maintainer="John Stucklen <[email protected]>"
LABEL version="1.1" maintainer="John Stucklen <[email protected]>"

ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV SUBSONIC_UID 1000
ENV SUBSONIC_GID 1000

Expand All @@ -11,21 +14,16 @@ RUN apt update \
&& rm -rf /var/lib/apt/lists/*

RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
locale-gen && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

RUN mkdir -p /opt/subsonic \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

RUN wget --no-check-certificate https://s3-eu-west-1.amazonaws.com/subsonic-public/download/subsonic-6.1.6-standalone.tar.gz \
&& tar xvzf subsonic-6.1.6-standalone.tar.gz -C /opt/subsonic \
&& rm -rf subsonic-6.1.6-standalone.tar.gz
RUN mkdir -p /opt/subsonic && \
wget --no-check-certificate https://s3-eu-west-1.amazonaws.com/subsonic-public/download/subsonic-6.1.6-standalone.tar.gz && \
tar xvzf subsonic-6.1.6-standalone.tar.gz -C /opt/subsonic && \
rm -rf subsonic-6.1.6-standalone.tar.gz

COPY mikmod_stdout /opt/subsonic
COPY timidity_stdout /opt/subsonic

COPY entrypoint.sh /opt/subsonic/entrypoint.sh

WORKDIR /opt/subsonic
Expand Down

0 comments on commit 42b8f4b

Please sign in to comment.