-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
46 lines (41 loc) · 1.24 KB
/
Dockerfile
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
FROM ghcr.io/linuxserver/baseimage-ubuntu:noble
# set version label
ARG BUILD_DATE
ARG VERSION
ARG KAVITA_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
# environment settings
ENV HOME="/config"
RUN \
apt-get update && \
apt-get install -y \
libicu74 && \
echo "**** install kavita ****" && \
mkdir -p \
/app/kavita && \
if [ -z ${KAVITA_RELEASE+x} ]; then \
KAVITA_RELEASE=$(curl -sX GET "https://api.github.com/repos/kareadita/kavita/releases/latest" \
| jq -r '.tag_name'); \
fi && \
curl -o \
/tmp/kavita.tar.gz -fL \
"https://github.com/Kareadita/Kavita/releases/download/${KAVITA_RELEASE}/kavita-linux-x64.tar.gz" && \
tar xf \
/tmp/kavita.tar.gz -C \
/app/kavita --strip-components=1 \
--no-same-owner && \
chmod +x /app/kavita/Kavita && \
cp /app/kavita/config/appsettings.json /defaults/ && \
rm -rf /app/kavita/config && \
ln -s /config /app/kavita/config && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** clean up ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 5000