Selinore commited on
Commit
883fdd7
·
verified ·
1 Parent(s): 08f9921

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -1
Dockerfile CHANGED
@@ -1,3 +1,14 @@
1
  FROM ghcr.io/wttwins/wrong-notebook:latest
2
 
3
- ENV PORT=7860
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM ghcr.io/wttwins/wrong-notebook:latest
2
 
3
+ USER root
4
+
5
+ ENV PORT=7860
6
+ ENV HOSTNAME="0.0.0.0"
7
+
8
+ # 补充安装缺失的 bcryptjs
9
+ WORKDIR /app
10
+ RUN npm install bcryptjs --no-save 2>/dev/null || true
11
+
12
+ EXPOSE 7860
13
+
14
+ ENTRYPOINT ["/entrypoint.sh"]