Create Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 使用指定的基础镜像
|
| 2 |
+
FROM fjiabinc/notdiamond2api
|
| 3 |
+
|
| 4 |
+
# 设置环境变量
|
| 5 |
+
ENV PORT=7860 \
|
| 6 |
+
AUTH_EMAIL=your_email@example.com \
|
| 7 |
+
AUTH_PASSWORD=your_password \
|
| 8 |
+
AUTH_ENABLED=true \
|
| 9 |
+
AUTH_TOKEN=your_token_here
|
| 10 |
+
|
| 11 |
+
# 暴露端口 7860
|
| 12 |
+
EXPOSE 7860
|