Update Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
@@ -1,4 +1,14 @@
|
|
1 |
# FROM ghcr.io/aurora-develop/duck2api:latest
|
2 |
# Set Env PREFIX to /hf or in fact anything you like
|
3 |
|
4 |
-
FROM ghcr.io/guobao2333/deeplx-serverless:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# FROM ghcr.io/aurora-develop/duck2api:latest
|
2 |
# Set Env PREFIX to /hf or in fact anything you like
|
3 |
|
4 |
+
FROM ghcr.io/guobao2333/deeplx-serverless:latest
|
5 |
+
|
6 |
+
# 暴露应用程序端口
|
7 |
+
# EXPOSE 6119
|
8 |
+
EXPOSE 6119
|
9 |
+
|
10 |
+
# 使用非 root 用户运行应用
|
11 |
+
USER node
|
12 |
+
|
13 |
+
# 启动应用
|
14 |
+
CMD ["npm", "start"]
|