Surbao commited on
Commit
44eb508
1 Parent(s): 7997ea6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -4
Dockerfile CHANGED
@@ -1,7 +1,15 @@
1
- FROM louislam/uptime-kuma:1
 
2
 
3
- WORKDIR /app
4
 
5
- RUN chmod 777 -R /app
 
 
6
 
7
- EXPOSE 30001
 
 
 
 
 
 
1
+ FROM alpine AS builder
2
+ RUN apk add --no-cache nodejs npm git
3
 
4
+ RUN npm install npm -g
5
 
6
+ RUN adduser -D app
7
+ USER app
8
+ WORKDIR /home/app
9
 
10
+ RUN git clone https://github.com/louislam/uptime-kuma.git
11
+ WORKDIR /home/app/uptime-kuma
12
+ RUN npm run setup
13
+
14
+ EXPOSE 3001
15
+ CMD ["node", "server/server.js"]