-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
28 lines (21 loc) · 862 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
24
25
26
27
28
FROM alpine AS builder
ENV HatH_VERSION 1.6.4
ENV HatH_SHA256 25351e4b43169f0bad25abcfe7f61034f03cca08b69f219727713975dc5b03b1
RUN apk --no-cache add unzip \
&& mkdir -p /hath \
&& cd /hath \
&& wget https://repo.e-hentai.org/hath/HentaiAtHome_$HatH_VERSION.zip -O hath.zip \
&& echo -n ""$HatH_SHA256" hath.zip" | sha256sum -c \
&& unzip hath.zip \
&& mkdir -p /hath/data \
&& mkdir -p /hath/download
FROM eclipse-temurin:8-jre-focal AS release
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
COPY --from=builder /hath /hath
COPY build/start.sh /hath/start.sh
WORKDIR /hath
RUN apt-get update \
&& apt-get install -y sqlite \
&& rm -rf /var/lib/apt/lists/* \
&& chmod +x /hath/start.sh
CMD ["/hath/start.sh"]