XJFKKK commited on
Commit
032962f
·
verified ·
1 Parent(s): 11528f4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM chipsman/uptime-kuma:latest
2
+
3
+
4
+ # 安装 Node.js
5
+ RUN apk update && \
6
+ apk add --no-cache nodejs npm
7
+
8
+ # 设置目录权限
9
+ RUN mkdir -p /app/data && chown -R node:node /app
10
+
11
+ USER node
12
+
13
+ EXPOSE 3001
14
+
15
+ CMD ["node","server/server.js"]