focusprogram commited on
Commit
9531886
·
verified ·
1 Parent(s): 01e821b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,11 +1,16 @@
1
- # 使用基础镜像
2
  FROM louislam/uptime-kuma:1
3
 
 
 
 
 
 
 
4
  # 暴露应用运行的端口
5
  EXPOSE 3001
6
 
7
  # 设置工作目录
8
  WORKDIR /app
9
 
10
- # 运行容器时的命令
11
- CMD ["node", "server/server.js"]
 
 
1
  FROM louislam/uptime-kuma:1
2
 
3
+ # 添加 entrypoint 脚本
4
+ COPY entrypoint.sh /entrypoint.sh
5
+ RUN chmod +x /entrypoint.sh
6
+
7
+ ENTRYPOINT ["/entrypoint.sh"]
8
+
9
  # 暴露应用运行的端口
10
  EXPOSE 3001
11
 
12
  # 设置工作目录
13
  WORKDIR /app
14
 
15
+
16
+ CMD ["node", "server/server.js"]