This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile.aarch64
67 lines (61 loc) · 1.75 KB
/
Dockerfile.aarch64
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
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.17
# set version label
ARG BUILD_DATE
ARG VERSION
ARG HEADPHONES_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
# hard set UTC in case the user does not define it
ENV TZ="Etc/UTC"
# copy patches folder
COPY patches/ /tmp/patches/
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
build-base && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
ffmpeg \
flac \
mc \
python3 && \
echo "**** compile shntool *** *" && \
mkdir -p \
/tmp/shntool && \
tar xf /tmp/patches/shntool-3.0.10.tar.gz -C \
/tmp/shntool --strip-components=1 && \
cp /tmp/patches/config.* /tmp/shntool && \
cd /tmp/shntool && \
./configure \
--infodir=/usr/share/info \
--localstatedir=/var \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc && \
make && \
make install && \
echo "**** install headphones ****" && \
mkdir -p /app/headphones && \
if [ -z ${HEADPHONES_COMMIT+x} ] ; then \
HEADPHONES_COMMIT=$(curl -sX GET "https://api.github.com/repos/rembo10/headphones/commits/master" \
| jq -r .sha); \
fi && \
curl -o \
/tmp/headphones.tar.gz -sL \
"https://github.com/rembo10/headphones/archive/${HEADPHONES_COMMIT}.tar.gz" && \
tar xf \
/tmp/headphones.tar.gz -C \
/app/headphones --strip-components=1 && \
echo ${HEADPHONES_COMMIT} > /app/headphones/version.txt && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/* \
/usr/lib/*.la
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8181
VOLUME /config