-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ede1362
commit e5b6ca6
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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 krb5-libs libintl libssl1.1 libstdc++ lttng-ust zlib && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Install Jackett | ||
RUN wget -O /tmp/jacket.tar.gz https://github.com/Jackett/Jackett/releases/download/${RELEASE_TAG}/Jackett.Binaries.LinuxMuslAMDx64.tar.gz \ | ||
&& 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"] |