ffreemt commited on
Commit
f0d9f6c
·
1 Parent(s): bac39c6

Update Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +9 -3
  2. 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 apk update && apk add --no-cache nodejs npm && mkdir -p /app/data && chown -R node:node /app
 
 
 
 
 
 
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": %(ENV_TYPE)s,
3
- "host": %(ENV_HOSTNAME)s,
4
- "port": %(ENV_PORT)s,
5
- "user": %(ENV_USER)s,
6
- "password": %(ENV_PASSWORD)s,
7
- "database": %(ENV_DATABASE)s
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
  }