Mythus commited on
Commit
d214841
·
verified ·
1 Parent(s): 6b4325d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -14
Dockerfile CHANGED
@@ -14,19 +14,14 @@ ENV XDG_DATA_HOME="/config" \
14
  XDG_CONFIG_HOME="/config" \
15
  TMPDIR=/run/jackett-temp
16
 
17
- # Create a user with UID 1000 to avoid permission issues
18
- RUN useradd -m -u 1000 user
 
19
 
20
- # Set home to the user's home directory
21
- ENV HOME=/home/user \
22
- PATH=/home/user/.local/bin:$PATH
23
-
24
- # Set the working directory to the user's home directory
25
- WORKDIR $HOME/app
26
 
27
  # Install packages as root
28
- USER root
29
-
30
  RUN \
31
  echo "**** install packages ****" && \
32
  apk --no-cache add \
@@ -53,13 +48,15 @@ RUN \
53
  echo "**** cleanup ****" && \
54
  rm -rf /tmp/*
55
 
56
- # Switch back to the non-root user for further actions
57
- USER user
58
-
59
- # Create the /root directory within the container (for use by the application, if needed)
60
  RUN mkdir -p /root
61
 
62
  # Ports and volumes
63
  VOLUME /config
64
 
65
  EXPOSE 9117
 
 
 
 
 
 
14
  XDG_CONFIG_HOME="/config" \
15
  TMPDIR=/run/jackett-temp
16
 
17
+ # Set home to root and working directory
18
+ ENV HOME=/root \
19
+ PATH=/root/.local/bin:$PATH
20
 
21
+ # Set the working directory
22
+ WORKDIR /root/app
 
 
 
 
23
 
24
  # Install packages as root
 
 
25
  RUN \
26
  echo "**** install packages ****" && \
27
  apk --no-cache add \
 
48
  echo "**** cleanup ****" && \
49
  rm -rf /tmp/*
50
 
51
+ # Create the /root directory within the container (if not present)
 
 
 
52
  RUN mkdir -p /root
53
 
54
  # Ports and volumes
55
  VOLUME /config
56
 
57
  EXPOSE 9117
58
+
59
+ # Copy local files to the image
60
+ COPY root/ /
61
+
62
+ # Set the entrypoint or command (if applicable)