dan92 commited on
Commit
4326fd7
·
verified ·
1 Parent(s): 8cdfaa4

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,7 +1,9 @@
1
- FROM hpyp/bbapi:latest
2
-
3
- # ENV APP_SECRET=sk-123456
4
-
5
- EXPOSE 8001
6
-
 
 
7
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]
 
1
+ FROM hpyp/bbapi:latest
2
+
3
+ # 添加DNS配置
4
+ RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf
5
+ RUN echo "nameserver 8.8.4.4" >> /etc/resolv.conf
6
+
7
+ EXPOSE 8001
8
+
9
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]