File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,30 +14,30 @@ RUN \
1414 git && \
1515 echo "**** install runtime packages ****" && \
1616 apk add --no-cache --upgrade \
17- nodejs \
18- npm \
19- openssl && \
17+ nodejs \
18+ npm \
19+ openssl && \
2020 echo "**** install app ****" && \
2121 mkdir -p \
22- /opt/mstream && \
22+ /opt/mstream && \
2323 if [ -z ${MSTREAM_RELEASE+x} ]; then \
24- MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
24+ MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
2525 | awk '/tag_name/{print $4;exit}' FS='[""]' ); \
2626 fi && \
2727 curl -o \
2828 /tmp/mstream.tar.gz -L \
29- "https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
29+ "https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
3030 tar xzf \
31- /tmp/mstream.tar.gz -C \
31+ /tmp/mstream.tar.gz -C \
3232 /opt/mstream/ --strip-components=1 && \
3333 cd /opt/mstream && \
3434 npm install --only=production && \
3535 npm link && \
3636 echo "**** cleanup ****" && \
3737 apk del --purge \
38- build-dependencies && \
38+ build-dependencies && \
3939 rm -rf \
40- /tmp/*
40+ /tmp/*
4141
4242# add local files
4343COPY root/ /
Original file line number Diff line number Diff line change @@ -14,30 +14,30 @@ RUN \
1414 git && \
1515 echo "**** install runtime packages ****" && \
1616 apk add --no-cache --upgrade \
17- nodejs \
18- npm \
19- openssl && \
17+ nodejs \
18+ npm \
19+ openssl && \
2020 echo "**** install app ****" && \
2121 mkdir -p \
22- /opt/mstream && \
22+ /opt/mstream && \
2323 if [ -z ${MSTREAM_RELEASE+x} ]; then \
24- MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
24+ MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
2525 | awk '/tag_name/{print $4;exit}' FS='[""]'); \
2626 fi && \
2727 curl -o \
2828 /tmp/mstream.tar.gz -L \
29- "https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
29+ "https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
3030 tar xf \
31- /tmp/mstream.tar.gz -C \
31+ /tmp/mstream.tar.gz -C \
3232 /opt/mstream/ --strip-components=1 && \
3333 cd /opt/mstream && \
3434 npm install --only=production && \
3535 npm link && \
3636 echo "**** cleanup ****" && \
3737 apk del --purge \
38- build-dependencies && \
38+ build-dependencies && \
3939 rm -rf \
40- /tmp/*
40+ /tmp/*
4141
4242# add local files
4343COPY root/ /
Original file line number Diff line number Diff line change @@ -10,34 +10,34 @@ LABEL maintainer="chbmb"
1010RUN \
1111 echo "**** install build packages ****" && \
1212 apk add --no-cache --virtual=build-dependencies \
13- curl \
13+ curl \
1414 git && \
1515 echo "**** install runtime packages ****" && \
1616 apk add --no-cache --upgrade \
17- nodejs \
18- npm \
19- openssl && \
17+ nodejs \
18+ npm \
19+ openssl && \
2020 echo "**** install app ****" && \
2121 mkdir -p \
22- /opt/mstream && \
22+ /opt/mstream && \
2323 if [ -z ${MSTREAM_RELEASE+x} ]; then \
24- MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
24+ MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
2525 | awk '/tag_name/{print $4;exit}' FS='[""]'); \
2626 fi && \
2727 curl -o \
2828 /tmp/mstream.tar.gz -L \
29- "https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
29+ "https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
3030 tar xf \
31- /tmp/mstream.tar.gz -C \
31+ /tmp/mstream.tar.gz -C \
3232 /opt/mstream/ --strip-components=1 && \
3333 cd /opt/mstream && \
3434 npm install --only=production && \
3535 npm link && \
3636 echo "**** cleanup ****" && \
3737 apk del --purge \
38- build-dependencies && \
38+ build-dependencies && \
3939 rm -rf \
40- /tmp/*
40+ /tmp/*
4141
4242# add local files
4343COPY root/ /
Original file line number Diff line number Diff line change 33# make our folders
44[[ ! -d /config/keys ]] && \
55mkdir -p \
6- /config/keys
6+ /config/keys
77
88# create keys
99[[ ! -e /config/keys/certificate.pem ]] && \
10- openssl req -x509 -nodes -days 3650 \
11- -newkey rsa:2048 -keyout /config/keys/private-key.pem -out /config/keys/certificate.pem \
12- -subj "/CN=mstream"
10+ openssl req -x509 -nodes -days 3650 \
11+ -newkey rsa:2048 -keyout /config/keys/private-key.pem -out /config/keys/certificate.pem \
12+ -subj "/CN=mstream"
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ mkdir -p \
1010
1111# permissions
1212chown abc:abc -R \
13- /config
13+ /config
1414
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ cd /opt/mstream || exit
44
55if [ "$USE_JSON" == "true" ]; then
66 exec \
7- s6-setuidgid abc mstream -j /config/config.json
7+ s6-setuidgid abc mstream -j /config/config.json
88else
99 exec \
10- s6-setuidgid abc mstream -m /music -I /config/album-art/ -d /config/db/ -u ${USER} -x ${PASSWORD}
10+ s6-setuidgid abc mstream -m /music -I /config/album-art/ -d /config/db/ -u ${USER} -x ${PASSWORD}
1111fi
You can’t perform that action at this time.
0 commit comments