forked from linuxserver/docker-mylar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.aarch64
39 lines (35 loc) · 944 Bytes
/
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
FROM lsiobase/python:arm64v8-3.9
# set version label
ARG BUILD_DATE
ARG VERSION
ARG MYLAR_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
RUN \
echo "**** install system packages ****" && \
apk add --no-cache \
git \
nodejs && \
echo "**** install pip packages ****" && \
pip install --no-cache-dir -U \
comictagger \
configparser \
html5lib \
tzlocal && \
echo "**** install app ****" && \
if [ -z ${MYLAR_COMMIT+x} ]; then \
MYLAR_COMMIT=$(curl -sX GET https://api.github.com/repos/evilhero/mylar/commits/master \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
git clone https://github.com/evilhero/mylar.git /app/mylar && \
cd /app/mylar && \
git checkout ${MYLAR_COMMIT} && \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /comics /downloads
EXPOSE 8090