-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (40 loc) · 1.31 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
47
48
49
50
51
FROM alpine:latest
# Read the release version from the build args
ARG RELEASE_TAG
ARG BUILD_DATE
LABEL build="JusteReseau - Version: ${RELEASE_TAG}"
LABEL description="This is a docker image for Jackett, that work with Kubernetes security baselines."
LABEL maintainer="JusteSonic"
WORKDIR /tmp
# Do the package update and install
RUN apk update && apk upgrade && \
apk add --no-cache icu-libs libstdc++ && \
rm -rf /var/cache/apk/*
# Download Jackett
RUN case $(uname -m) in \
x86_64) \
wget -O /tmp/jacket.tar.gz https://github.com/Jackett/Jackett/releases/download/${RELEASE_TAG}/Jackett.Binaries.LinuxMuslAMDx64.tar.gz \
;; \
aarch64) \
wget -O /tmp/jacket.tar.gz https://github.com/Jackett/Jackett/releases/download/${RELEASE_TAG}/Jackett.Binaries.LinuxMuslARM64.tar.gz \
;; \
*) \
echo "Unsupported architecture > $(uname -m)" \
exit 1 \
;; \
esac
# Install Jackett
RUN tar -xvzf /tmp/jacket.tar.gz -C /opt && rm -rf /tmp/*
WORKDIR /config
# Ensure the jackett user and group exists and set the permissions
RUN adduser -D -u 1000 -h /config jackett \
&& chown -R jackett:jackett /config \
&& chown -R jackett:jackett /opt/Jackett
# Set the user
USER jackett
# Expose the port
EXPOSE 9117
# Change the config directory
ENV XDG_CONFIG_HOME=/config
# Set the command
CMD ["/opt/Jackett/jackett"]