Update Dockerfile
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 1 Nov 2020 21:44:37 +0000 (22:44 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 1 Nov 2020 21:44:37 +0000 (22:44 +0100)
Dockerfile

index b437d80289152b4ec00eabb8bbaeace7a6eafc86..f39a670c5201f22ea3a0ef5a4862e65fb38d34aa 100755 (executable)
@@ -8,6 +8,8 @@ ARG S6_OVERLAY_VERSION=2.1.0.2
 ARG TARGETPLATFORM
 ARG BUILDPLATFORM
 
+WORKDIR /usr/src
+
 RUN set -x \
     && apt-get update && apt-get install -y --no-install-recommends \
         # required packages
@@ -28,28 +30,25 @@ RUN set -x \
     # Setup s6 overlay
     && if [ "$TARGETPLATFORM" == "linux/arm/v7" ]; \
       then \
-          curl -L -f -s "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-arm.tar.gz" \
-          | tar zxvf - -C /; \
+          curl -L -f -s "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-arm.tar.gz" | tar zxvf - -C / ;\
     elif [ "$TARGETPLATFORM" == "linux/arm/v6" ]; \
       then \
-          curl -L -f -s "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-armhf.tar.gz" \
-          | tar zxvf - -C /; \
+          curl -L -f -s "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-armhf.tar.gz" | tar zxvf - -C / ;\
     elif [ "$TARGETPLATFORM" == "linux/arm64" ]; \
       then \
-          curl -L -f -s "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-aarch64.tar.gz" \
-          | tar zxvf - -C /; \
+          curl -L -f -s "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-aarch64.tar.gz" | tar zxvf - -C / ;\
     else \
-        curl -L -f -s "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-amd64.tar.gz" \
-        | tar zxvf - -C /; \
+        curl -L -f -s "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-amd64.tar.gz" | tar zxvf - -C / ;\
     fi \
     && mkdir -p /etc/fix-attrs.d \
     && mkdir -p /etc/services.d \
+    && cd /tmp \
     \
     # rustup requirement for maturin/orjson
     && pip install maturin \
     && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2020-10-24 --profile minimal -y \
     # install uvloop and music assistant
-    && cd /tmp && pip install --upgrade uvloop music-assistant==${MASS_VERSION} \
+    && pip install --upgrade uvloop music-assistant==${MASS_VERSION} \
     # cleanup build packages
     && apt-get purge -y --auto-remove libtag1-dev build-essential liblapack-dev libblas-dev gfortran libatlas-base-dev \
     && rm -rf /var/lib/apt/lists/*