This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile.arm64v8
76 lines (65 loc) · 1.84 KB
/
Dockerfile.arm64v8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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/v3.0.0%2Bresin/qemu-3.0.0+resin-aarch64.tar.gz
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.12 AS python
# Add QEMU
COPY --from=builder qemu-aarch64-static /usr/bin
RUN apk add build-base python3 python3-dev py3-pip musl-dev gcc&& \
echo "*********** install python packages ***********" && \
pip install wheel && \
pip wheel --wheel-dir=/root/wheels \
yq \
mutagen \
r128gain \
mediafile \
confuse \
requests \
https://github.com/beetbox/beets/tarball/master \
deemix
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.12
# Add QEMU
COPY --from=builder qemu-aarch64-static /usr/bin
# Add Python Wheels
COPY --from=python /root/wheels /root/wheels
ENV TITLE="Automated Music Downloader (AMD)"
ENV TITLESHORT="AMD"
ENV VERSION="1.1.10"
ENV MBRAINZMIRROR="https://musicbrainz.org"
ENV XDG_CONFIG_HOME="/config/deemix/xdg"
ENV DOWNLOADMODE="wanted"
ENV FALLBACKSEARCH="True"
RUN apk add --no-cache \
bash \
ca-certificates \
curl \
jq \
findutils \
flac \
eyed3 \
opus-tools \
python3 \
py3-pip \
musl-dev \
gcc \
ffmpeg && \
echo "************ install python packages ************" && \
pip install \
--no-index \
--find-links=/root/wheels \
yq \
mutagen \
r128gain \
mediafile \
confuse \
requests \
https://github.com/beetbox/beets/tarball/master \
deemix && \
echo "************ setup dl client config directory ************" && \
echo "************ make directory ************" && \
mkdir -p "${XDG_CONFIG_HOME}/deemix"
# copy local files
COPY root/ /
WORKDIR /config
# ports and volumes
VOLUME /config