victorgeek commited on
Commit
4b3d9d1
·
verified ·
1 Parent(s): 75ac745

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -27
Dockerfile CHANGED
@@ -1,34 +1,12 @@
1
- # Use the official Rust image as a build stage
2
- # ... (Build stage remains the same) ...
3
-
4
- # Use a Devuan base image for the final image
5
- FROM devuan/devuan:latest
6
-
7
- # Copy the compiled binaries from the builder stage
8
- # ... (Binary copy commands remain the same) ...
9
-
10
- # <<< အရေးကြီး: Local မှာ 'ferron-docker.yaml' file ရှိပြီး အပေါ်က YAML content အမှန် ထည့်ထားကြောင်း သေချာပါစေ >>>
11
- # Copy the web server configuration (Local filename တူရမည်)
12
- COPY ferron-docker.yaml /etc/ferron.yaml # <<< ဒီ command မှန်ပါတယ်၊ local file content မှန်ဖို့ပဲလိုတယ်
13
-
14
- # Copy the web root contents
15
- RUN mkdir -p /var/www/ferron
16
- COPY wwwroot/* /var/www/ferron/ # <<< Local မှာ wwwroot ရှိရမည်
17
-
18
- # Create a directory where Ferron logs are stored
19
- RUN mkdir -p /var/log/ferron
20
-
21
- # Create a "ferron" user and grant the permissions
22
- RUN useradd -d /nonexistent -s /usr/sbin/nologin -r ferron && \
23
- chown -R ferron:ferron /var/www/ferron && \
24
- chown -R ferron:ferron /var/log/ferron # <<< ဒီ command မှန်ပါတယ်
25
 
26
  # --- ပြင်ဆင်ရန် ---
27
  # Expose the port Hugging Face expects (8080)
28
- EXPOSE 8080 # <<< 80 မဟုတ်တော့ပါ
 
29
 
30
  # Switch to "ferron" user (AFTER ownership changes)
31
- USER ferron # <<< ဒီ command မှန်ပါတယ်
32
 
33
  # Set the command to run the binary using the config file
34
- CMD ["/usr/sbin/ferron", "-c", "/etc/ferron.yaml"] # <<< ဒီ command မှန်ပါတယ်
 
1
+ # ... (ယခင် commands များ) ...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  # --- ပြင်ဆင်ရန် ---
4
  # Expose the port Hugging Face expects (8080)
5
+ # 80 မဟုတ်တော့ပါ <--- Comment ကို ဒီလို အပေါ်မှာထားပါ
6
+ EXPOSE 8080 # <<< ဒီစာကြောင်းမှာ port number ပဲ ထားပါ
7
 
8
  # Switch to "ferron" user (AFTER ownership changes)
9
+ USER ferron
10
 
11
  # Set the command to run the binary using the config file
12
+ CMD ["/usr/sbin/ferron", "-c", "/etc/ferron.yaml"]