Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
|