forked from linuxserver/docker-lazylibrarian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.aarch64
60 lines (56 loc) · 1.51 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
FROM lsiobase/ubuntu:arm64v8-bionic
# 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 \
python3-pip \
zlib1g-dev && \
echo "**** install runtime packages ****" && \
apt-get install -y \
ghostscript \
libjpeg-turbo8 \
python3-minimal \
python3-openssl \
unrar \
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/repository/archive.tar.gz?sha={$LAZYLIBRARIAN_COMMIT}" && \
tar xf \
/tmp/lazylibrarian.tar.gz -C \
/app/lazylibrarian --strip-components=1 && \
cd /app/lazylibrarian && \
pip3 install --no-cache-dir -U \
apprise \
Pillow && \
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/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 5299
VOLUME /books /config