sugar404 commited on
Commit
081fd9f
1 Parent(s): 946a168

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -4,6 +4,11 @@ FROM chipsman/uptime-kuma:latest
4
  # 安装 Node.js
5
  RUN apk update && \
6
  apk add --no-cache nodejs npm
 
 
 
 
 
7
 
8
  EXPOSE 3001
9
 
 
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