forked from RandomNinjaAtk/docker-amd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.amd64
65 lines (57 loc) · 1.39 KB
/
Dockerfile.amd64
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
FROM ghcr.io/linuxserver/baseimage-alpine:3.12 AS python
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:3.12
# 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 \
flac \
eyed3 \
opus-tools \
python3 \
findutils \
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