asv7j commited on
Commit
2e25d6d
·
verified ·
1 Parent(s): 68b2f03

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -3
Dockerfile CHANGED
@@ -1,8 +1,16 @@
1
  FROM libretranslate/libretranslate
2
 
3
- RUN useradd -m -u 1000 user
4
- USER user
 
 
 
 
 
5
  ENV PATH="/home/user/.local/bin:$PATH"
 
 
6
  EXPOSE 5000
7
 
8
- CMD ["--load-only", "hi,en"]
 
 
1
  FROM libretranslate/libretranslate
2
 
3
+ # You may not need to add a new user if the base image already provides one
4
+ # RUN useradd -m -u 1000 user
5
+
6
+ # Specify the user to use (if necessary)
7
+ # USER user
8
+
9
+ # Set the environment variable for PATH, if needed
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
+
12
+ # Expose the default LibreTranslate port (5000)
13
  EXPOSE 5000
14
 
15
+ # Example CMD to load specific languages during startup
16
+ CMD ["--load-only", "hi,en"]