-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile.aarch64
70 lines (63 loc) · 2.07 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
68
69
70
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-noble
# set version label
ARG BUILD_DATE
ARG VERSION
ARG LAZYLIBRARIAN_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"
RUN \
echo "**** install build packages ****" && \
apt-get update && \
apt-get install -y \
libjpeg-turbo8-dev \
zlib1g-dev && \
echo "**** install runtime packages ****" && \
apt-get install -y \
ghostscript \
libjpeg-turbo8 \
libmagic1 \
python3-venv \
zlib1g && \
echo "**** install app ****" && \
mkdir -p \
/app/lazylibrarian && \
if [ -z ${LAZYLIBRARIAN_COMMIT+x} ]; then \
LAZYLIBRARIAN_COMMIT=$(curl -sX GET "https://gitlab.com/api/v4/projects/9317860/repository/commits/master" \
| awk '/id/{print $4;exit}' FS='[""]'); \
fi && \
echo "Installing from commit ${LAZYLIBRARIAN_COMMIT}" && \
echo "${LAZYLIBRARIAN_COMMIT}" > /defaults/version.txt && \
curl -o \
/tmp/lazylibrarian.tar.gz -L \
"https://gitlab.com/LazyLibrarian/LazyLibrarian/-/archive/{$LAZYLIBRARIAN_COMMIT}/LazyLibrarian-{$LAZYLIBRARIAN_COMMIT}.tar.gz" && \
tar xf \
/tmp/lazylibrarian.tar.gz -C \
/app/lazylibrarian --strip-components=1 && \
cd /app/lazylibrarian && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \
wheel && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ . && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ Levenshtein && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apt-get -y purge \
libjpeg-turbo8-dev \
python3-pip \
zlib1g-dev && \
apt-get -y autoremove && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/* \
/root/.cache
# add local files
COPY root/ /
# add unrar
COPY --from=unrar /usr/bin/unrar-ubuntu /usr/bin/unrar
# ports and volumes
EXPOSE 5299
VOLUME /config