Create Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 使用指定的基础镜像
|
2 |
+
FROM snailyc/blackbox2api:latest
|
3 |
+
|
4 |
+
# 设置环境变量
|
5 |
+
ENV PORT=8001 \
|
6 |
+
APP_SECRET=Rfym21
|
7 |
+
|
8 |
+
# 暴露端口 8001
|
9 |
+
EXPOSE 8001
|
10 |
+
|
11 |
+
# 启动命令
|
12 |
+
CMD ["python", "main.py"]
|