Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
|
@@ -20,16 +20,19 @@ RUN apt-get update && \
|
|
| 20 |
# Create directories for Jackett installation (run as root)
|
| 21 |
RUN mkdir -p /opt/Jackett
|
| 22 |
|
| 23 |
-
#
|
| 24 |
-
USER user
|
| 25 |
-
|
| 26 |
-
# Download and extract the latest Jackett release into /opt/Jackett
|
| 27 |
RUN release=$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) && \
|
| 28 |
f=Jackett.Binaries.LinuxAMDx64.tar.gz && \
|
| 29 |
wget -Nc https://github.com/Jackett/Jackett/releases/download/$release/"$f" -P /opt && \
|
| 30 |
tar -xzf /opt/"$f" -C /opt/Jackett && \
|
| 31 |
rm /opt/"$f"
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# Switch back to root to set up Jackett as a service
|
| 34 |
USER root
|
| 35 |
|
|
@@ -37,8 +40,5 @@ USER root
|
|
| 37 |
WORKDIR /opt/Jackett/Jackett*
|
| 38 |
RUN ./install_service_systemd.sh
|
| 39 |
|
| 40 |
-
# Expose the port used by Jackett (default is 9117)
|
| 41 |
-
EXPOSE 9117
|
| 42 |
-
|
| 43 |
# Set the default command to check the status of Jackett service
|
| 44 |
CMD ["systemctl", "status", "jackett.service"]
|
|
|
|
| 20 |
# Create directories for Jackett installation (run as root)
|
| 21 |
RUN mkdir -p /opt/Jackett
|
| 22 |
|
| 23 |
+
# Download and extract the latest Jackett release into /opt/Jackett (run as root)
|
|
|
|
|
|
|
|
|
|
| 24 |
RUN release=$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) && \
|
| 25 |
f=Jackett.Binaries.LinuxAMDx64.tar.gz && \
|
| 26 |
wget -Nc https://github.com/Jackett/Jackett/releases/download/$release/"$f" -P /opt && \
|
| 27 |
tar -xzf /opt/"$f" -C /opt/Jackett && \
|
| 28 |
rm /opt/"$f"
|
| 29 |
|
| 30 |
+
# Switch to the "user" user for non-privileged operations moving forward
|
| 31 |
+
USER user
|
| 32 |
+
|
| 33 |
+
# Expose the port used by Jackett (default is 9117)
|
| 34 |
+
EXPOSE 9117
|
| 35 |
+
|
| 36 |
# Switch back to root to set up Jackett as a service
|
| 37 |
USER root
|
| 38 |
|
|
|
|
| 40 |
WORKDIR /opt/Jackett/Jackett*
|
| 41 |
RUN ./install_service_systemd.sh
|
| 42 |
|
|
|
|
|
|
|
|
|
|
| 43 |
# Set the default command to check the status of Jackett service
|
| 44 |
CMD ["systemctl", "status", "jackett.service"]
|