Shinhati2023 commited on
Commit
742c639
·
verified ·
1 Parent(s): 03a971f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -9
Dockerfile CHANGED
@@ -1,20 +1,23 @@
1
- # We are switching to 'ubuntu-xfce' because 'alpine-xfce' is not valid
2
  FROM linuxserver/webtop:ubuntu-xfce
3
 
4
  # --------------------------------------------------------
5
- # CONFIGURATION
6
  # --------------------------------------------------------
7
- # Change port from 3000 to 7860 for Hugging Face
8
- RUN sed -i 's/3000/7860/g' /defaults/nginx.conf
 
9
 
10
- # Set User permissions
 
 
11
  ENV PUID=1000
12
  ENV PGID=1000
 
13
 
14
  # --------------------------------------------------------
15
- # PRE-INSTALL APPS (The "Memory" Part)
16
  # --------------------------------------------------------
17
- # Since we switched to Ubuntu, we use 'apt-get' instead of 'apk'
18
  RUN apt-get update && apt-get install -y \
19
  python3 \
20
  python3-pip \
@@ -22,7 +25,9 @@ RUN apt-get update && apt-get install -y \
22
  firefox \
23
  nano \
24
  vlc \
25
- # Add any other apps here
26
  && apt-get clean
27
 
28
- # The container entrypoint handles the startup
 
 
 
 
 
1
  FROM linuxserver/webtop:ubuntu-xfce
2
 
3
  # --------------------------------------------------------
4
+ # 1. SMART PORT CONFIGURATION
5
  # --------------------------------------------------------
6
+ # Instead of guessing the file name, we search the /defaults folder
7
+ # for any file containing "3000" and replace it with "7860".
8
+ RUN grep -rl "3000" /defaults | xargs sed -i 's/3000/7860/g'
9
 
10
+ # --------------------------------------------------------
11
+ # 2. PERMISSIONS & ENVIRONMENT
12
+ # --------------------------------------------------------
13
  ENV PUID=1000
14
  ENV PGID=1000
15
+ ENV TZ=Etc/UTC
16
 
17
  # --------------------------------------------------------
18
+ # 3. INSTALL APPS (The Memory)
19
  # --------------------------------------------------------
20
+ # Update apt and install your tools
21
  RUN apt-get update && apt-get install -y \
22
  python3 \
23
  python3-pip \
 
25
  firefox \
26
  nano \
27
  vlc \
 
28
  && apt-get clean
29
 
30
+ # --------------------------------------------------------
31
+ # 4. START
32
+ # --------------------------------------------------------
33
+ # The container handles the rest