Added the missing containers from rpi-docker-images

This commit is contained in:
2021-04-24 13:00:00 +02:00
parent ee7613803d
commit bf41bdbb21
11 changed files with 408 additions and 1 deletions

21
mopidy/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM alpine:edge AS builder
ARG TARGETPLATFORM
RUN apk add --no-cache curl \
&& DOWNLOAD_ARCH=$(echo ${TARGETPLATFORM} | sed "s#linux/arm/v6#arm#" | sed "s#linux/arm/v7#armhf#" | sed "s#linux/arm64#aarch64#" | sed "s#linux/amd64#amd64#") \
&& echo "DOWNLOAD_ARCH=${DOWNLOAD_ARCH}" \
&& S6_DOWNLOAD_URL=$(curl -s https://api.github.com/repos/just-containers/s6-overlay/releases/latest | grep "browser_download_url" | grep "s6-overlay-${DOWNLOAD_ARCH}.tar.gz\"" | cut -d\" -f4) \
&& curl --retry 3 -L -s -o /tmp/s6-overlay.tar.gz $S6_DOWNLOAD_URL \
&& mkdir /tmp/s6-overlay \
&& tar xzf /tmp/s6-overlay.tar.gz -C /tmp/s6-overlay
FROM alpine:edge
RUN apk add --no-cache py3-pip mopidy \
&& echo "30 7 * * * mopidy local scan" | crontab -
COPY --from=builder /tmp/s6-overlay /
COPY etc /etc/
ENTRYPOINT ["/init"]

View File

@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv sh
if [ "$MOPIDY_PLUGINS" != "" ]; then
echo "Installing plugins $MOPIDY_PLUGINS"
pip3 install $MOPIDY_PLUGINS
fi

View File

@@ -0,0 +1,3 @@
#!/bin/sh
crond -f

View File

@@ -0,0 +1,3 @@
#!/usr/bin/execlineb -P
mopidy