Spaces:
Running
Running
Create Dockerfile
Browse files- 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"]
|