Mythus commited on
Commit
ea47c86
·
verified ·
1 Parent(s): 9d832d6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -12,17 +12,17 @@ RUN useradd -m -u 1000 user
12
  # Set the working directory to the user's home directory
13
  WORKDIR $HOME/app
14
 
15
- # Update and install dependencies
16
  RUN apt-get update && \
17
  apt-get install -y wget curl libicu-dev libcurl4-openssl-dev tar && \
18
  rm -rf /var/lib/apt/lists/*
19
 
20
- # Switch to the "user" user for all operations moving forward
21
- USER user
22
-
23
- # Create directories for Jackett installation and downloads
24
  RUN mkdir -p /opt/Jackett
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 && \
 
12
  # Set the working directory to the user's home directory
13
  WORKDIR $HOME/app
14
 
15
+ # Update and install dependencies (run as root)
16
  RUN apt-get update && \
17
  apt-get install -y wget curl libicu-dev libcurl4-openssl-dev tar && \
18
  rm -rf /var/lib/apt/lists/*
19
 
20
+ # Create directories for Jackett installation (run as root)
 
 
 
21
  RUN mkdir -p /opt/Jackett
22
 
23
+ # Switch to the "user" user for non-privileged operations moving forward
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 && \