forked from frosty5689/docker-hath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 839 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
29
30
# see hooks/build and hooks/.config
ARG BASE_IMAGE_PREFIX
FROM ${BASE_IMAGE_PREFIX}openjdk:8-jre-alpine
# see hooks/post_checkout
ARG ARCH
COPY qemu-${ARCH}-static /usr/bin
LABEL maintainer frosty5689 <frosty5689@gmail.com>
RUN apk add --no-cache --update \
ca-certificates \
tzdata \
&& update-ca-certificates
ARG HATH_VERSION
RUN apk add --no-cache --update --virtual build-dependencies wget unzip && \
wget -O /tmp/hath-$HATH_VERSION.zip https://repo.e-hentai.org/hath/HentaiAtHome_$HATH_VERSION.zip && \
ls -l /tmp && \
mkdir -p /opt/hath /hath && \
unzip /tmp/hath-$HATH_VERSION.zip -d /opt/hath && \
rm /tmp/hath-$HATH_VERSION.zip && \
apk del build-dependencies
ADD run/* /opt/hath/
VOLUME ["/hath/cache", "/hath/data", "/hath/download", "/hath/log", "/hath/tmp"]
CMD ["/opt/hath/start.sh"]