Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·95 lines (81 loc) · 2.52 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·95 lines (81 loc) · 2.52 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
FROM node:24-alpine AS deemix-builder
ARG DEEMIX_REPO=https://github.com/crywolf203/deemix.git
# renovate: datasource=git-refs packageName=https://github.com/crywolf203/deemix currentValue=fix-docker-temp-artwork-permissions
ARG DEEMIX_REF=72663d4a78436b01aa3b26d8df822cf43f105c59
RUN apk add --no-cache \
git \
python3 \
make \
g++
RUN corepack enable
WORKDIR /src
RUN git clone --filter=blob:none "$DEEMIX_REPO" . \
&& git checkout "$DEEMIX_REF"
RUN pnpm install --frozen-lockfile
RUN pnpm turbo build --filter=deemix-cli...
RUN cd /src/packages/cli \
&& /src/node_modules/.bin/pkg \
. \
--targets node20-linux-x64 \
--output /tmp/deemix
RUN chmod 0755 /tmp/deemix \
&& test -x /tmp/deemix \
&& ls -lh /tmp/deemix
FROM lsiobase/ubuntu:focal
LABEL maintainer="RandomNinjaAtk"
ENV TITLE="Automated Music Archiver (AMA)"
ENV TITLESHORT="AMA"
ENV VERSION="2.6.1"
ENV XDG_CONFIG_HOME="/config/deemix/xdg"
ENV RETAIN_PARTIAL_ALBUMS="false"
ENV RETRY_MISSING_TRACKS="true"
ENV PARTIAL_RETRY_HOURS="24"
RUN \
echo "************ install dependencies ************" && \
echo "************ install and upgrade packages ************" && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
netbase \
jq \
flac \
eyed3 \
python3 \
ffmpeg \
opus-tools \
python3-pip \
wget \
xz-utils \
ca-certificates && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/* && \
echo "************ install python packages ************" && \
python3 -m pip install --no-cache-dir \
certifi==2021.10.8 \
charset-normalizer==2.0.12 \
idna==3.3 \
requests==2.27.1 \
urllib3==1.26.9 \
pycryptodomex==3.14.1 \
mutagen==1.45.1 \
yq==2.14.0 && \
echo "************ install rsgain ************" && \
mkdir -p /tmp/rsgain /usr/local/bin && \
wget -O /tmp/rsgain/rsgain.tar.xz https://github.com/complexlogic/rsgain/releases/download/v3.7/rsgain-3.7-Linux.tar.xz && \
tar -xJf /tmp/rsgain/rsgain.tar.xz -C /tmp/rsgain && \
find /tmp/rsgain -type f -name rsgain -exec cp {} /usr/local/bin/rsgain \; && \
chmod +x /usr/local/bin/rsgain && \
rsgain --version && \
rm -rf /tmp/rsgain && \
echo "************ setup dl client config directory ************" && \
echo "************ make directory ************" && \
mkdir -p "${XDG_CONFIG_HOME}/deemix"
# Bambanah Deemix standalone CLI
COPY --from=deemix-builder /tmp/deemix /usr/local/bin/deemix
RUN chmod 0755 /usr/local/bin/deemix
# copy local files
COPY root/ /
# set work directory
WORKDIR /config