forked from Disappear9/H-at-H-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 794 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM openjdk:11-jre-slim
ARG HatH_VERSION=1.6.1
ARG HatH_SHA256=b8889b2c35593004be061064fcb6d690ff8cbda9564d89f706f7e3ceaf828726
WORKDIR /hath
ADD build/start.sh .
ADD https://repo.e-hentai.org/hath/HentaiAtHome_$HatH_VERSION.zip .
RUN apt update \
&& apt install -y unzip sqlite3 \
&& rm -r /var/lib/apt/lists/* \
&& echo -n ""$HatH_SHA256" HentaiAtHome_$HatH_VERSION.zip" | sha256sum -c \
&& unzip HentaiAtHome_$HatH_VERSION.zip \
&& rm HentaiAtHome_$HatH_VERSION.zip \
&& mkdir -p /hath/data \
&& mkdir -p /hath/download \
&& chmod +x start.sh
ENV HatH_ARGS --cache-dir=/hath/data/cache --data-dir=/hath/data/data --download-dir=/hath/download --log-dir=/hath/data/log --temp-dir=/hath/data/temp
VOLUME /hath/data /hath/download
CMD ["/hath/start.sh"]