ARG TARGETPLATFORM
ARG BUILDPLATFORM
+WORKDIR /usr/src
+
RUN set -x \
&& apt-get update && apt-get install -y --no-install-recommends \
# required packages
# 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/*