-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_alpine
45 lines (39 loc) · 1.15 KB
/
Dockerfile_alpine
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
FROM digrouz/alpine-s6:latest
LABEL maintainer "DI GREGORIO Nicolas <[email protected]>"
ARG NZBHYDRA2_VERSION='7.10.1'
ARG NZBHYDRA2_ARCH='generic'
### Environment variables
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
NZBHYDRA2_VERSION="${NZBHYDRA2_VERSION}" \
NZBHYDRA2_ARCH="${NZBHYDRA2_ARCH}"
# Copy config files
COPY root/ /
### Install Application
RUN set -x && \
apk add --no-cache --virtual=build-deps \
curl \
unzip \
&& \
apk add --no-cache --virtual=run-deps \
ca-certificates \
openjdk17-jre-headless \
python3 \
&& \
curl -sL https://github.com/theotherp/nzbhydra2/releases/download/v${NZBHYDRA2_VERSION}/nzbhydra2-${NZBHYDRA2_VERSION}-${NZBHYDRA2_ARCH}.zip -o /tmp/nzbhydra2.zip && \
cd /tmp && \
unzip /tmp/nzbhydra2.zip -d /opt/nzbhydra2 && \
apk del --no-cache --purge \
build-deps \
&& \
mkdir -p /config && \
rm -rf /opt/nzbhydra2/data && \
ln -snf /config /opt/nzbhydra2/data && \
rm -rf /tmp/* \
/var/cache/apk/* \
/var/tmp/*
### Volume
VOLUME ["/config"]
### Expose ports
EXPOSE 5076