Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
f0d9f6c
1
Parent(s):
bac39c6
Update Dockerfile
Browse files- Dockerfile +9 -3
- data/db-config.json +6 -6
Dockerfile
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
FROM chipsman/uptime-kuma:latest
|
2 |
# FROM louislam/uptime-kuma
|
3 |
|
4 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
USER node
|
7 |
-
|
8 |
EXPOSE 3001
|
9 |
|
10 |
-
CMD ["node","server/server.js"]
|
|
|
1 |
FROM chipsman/uptime-kuma:latest
|
2 |
# FROM louislam/uptime-kuma
|
3 |
|
4 |
+
RUN <<EOF
|
5 |
+
apk update
|
6 |
+
apk add --no-cache nodejs npm
|
7 |
+
mkdir -p /app/data
|
8 |
+
EOF
|
9 |
+
COPY ./data/db-config.json ./data
|
10 |
+
RUN chown -R node:node /app
|
11 |
|
12 |
USER node
|
13 |
+
|
14 |
EXPOSE 3001
|
15 |
|
16 |
+
CMD ["node","server/server.js"]
|
data/db-config.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
-
"type": %(
|
3 |
-
"host": %(
|
4 |
-
"port": %(
|
5 |
-
"user": %(
|
6 |
-
"password": %(
|
7 |
-
"database": %(
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"type": %(ENV_UPTIME_KUMA_DB_TYPE)s,
|
3 |
+
"host": %(ENV_UPTIME_KUMA_DB_HOSTNAME)s,
|
4 |
+
"port": %(ENV_UPTIME_KUMA_DB_PORT)s,
|
5 |
+
"user": %(ENV_UPTIME_KUMA_DB_USERNAME)s,
|
6 |
+
"password": %(ENV_UPTIME_KUMA_DB_PASSWORD)s,
|
7 |
+
"database": %(ENV_UPTIME_KUMA_DB_NAME)s
|
8 |
}
|