Update Dockerfile
Browse files- Dockerfile +11 -3
Dockerfile
CHANGED
@@ -1,8 +1,16 @@
|
|
1 |
FROM libretranslate/libretranslate
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
|
6 |
EXPOSE 5000
|
7 |
|
8 |
-
CMD
|
|
|
|
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"]
|