eatYour commited on
Commit
d354752
1 Parent(s): 56a346a

Upload 3 files

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -4,12 +4,16 @@ COPY aria2.conf /app/aria2.conf
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
6
 
 
 
 
 
7
  # Switch to the "user" user
8
  USER user
9
 
10
  # Set home to the user's home directory
11
  ENV HOME=/home/user \
12
- PATH=/home/user/.local/bin:$PATH
13
 
14
  # Set the working directory to the user's home directory
15
  WORKDIR $HOME/alist
@@ -18,6 +22,4 @@ COPY --chown=user . $HOME/alist
18
  EXPOSE 5244
19
  RUN chmod +x $HOME/alist/alist
20
  # CMD ["bash", "alist", "server"]
21
- COPY start.sh /app/start.sh
22
- RUN chmod +x /app/start.sh
23
- CMD ["/app/start.sh"]
 
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
6
 
7
+ # Copy the start script and change its permissions
8
+ COPY start.sh /app/start.sh
9
+ RUN chmod +x /app/start.sh
10
+
11
  # Switch to the "user" user
12
  USER user
13
 
14
  # Set home to the user's home directory
15
  ENV HOME=/home/user \
16
+ PATH=/home/user/.local/bin:$PATH
17
 
18
  # Set the working directory to the user's home directory
19
  WORKDIR $HOME/alist
 
22
  EXPOSE 5244
23
  RUN chmod +x $HOME/alist/alist
24
  # CMD ["bash", "alist", "server"]
25
+ CMD ["/app/start.sh"]