wanglu88 commited on
Commit
3c6c874
1 Parent(s): 93ad928

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"]