deemix-docker/Dockerfile.arm32v7

53 lines
1.3 KiB
Docker
Raw Normal View History

2020-06-05 21:45:21 +00:00
FROM alpine AS builder
# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v5.2.0%2Bbalena4/qemu-5.2.0.balena4-arm.tar.gz
2020-06-05 21:45:21 +00:00
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
2020-06-11 18:45:28 +00:00
2021-03-02 23:01:41 +00:00
FROM lsiobase/alpine:arm32v7-3.13
2020-06-05 21:45:21 +00:00
# Add QEMU
COPY --from=builder qemu-arm-static /usr/bin
2020-06-11 18:45:28 +00:00
ARG BUILDDATE
ENV BUILDDATEENV=${BUILDDATE}
2020-06-05 21:45:21 +00:00
2020-06-11 18:45:28 +00:00
LABEL \
app.deemix.image.created="${BUILDDATE}" \
app.deemix.image.url="https://gitlab.com/Bockiii/deemix-docker" \
app.deemix.image.title="Docker image for Deemix" \
app.deemix.image.description="Docker image for Deemix and the pyweb frontend" \
maintainer="Bocki"
2020-06-05 21:45:21 +00:00
RUN \
2020-06-11 18:45:28 +00:00
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
2020-06-05 21:45:21 +00:00
gcc \
g++ \
libffi-dev \
python3-dev \
2020-06-11 18:45:28 +00:00
git \
2020-09-23 23:30:10 +00:00
curl \
2020-11-01 19:10:55 +00:00
jq \
2020-06-11 18:45:28 +00:00
make && \
echo "**** install packages ****" && \
apk add --no-cache \
py3-pip \
python3 && \
echo "**** setup directories ****" && \
mkdir /deem && \
mkdir /deem/Music && \
2020-06-11 18:45:28 +00:00
rm -R /config && \
ln -sf /deem/.config/deemix /config && \
ln -sf /downloads /deem/Music/deemix\ Music && \
chown abc:abc /deem && \
2020-06-11 18:45:28 +00:00
echo "**** clean up ****" && \
rm -rf \
/root/.cache \
/tmp/*
2020-06-05 21:45:21 +00:00
COPY root/ /
2020-06-11 18:45:28 +00:00
EXPOSE 6595
2020-06-05 21:45:21 +00:00
VOLUME /downloads /config