linzh commited on
Commit
e4c5c6e
1 Parent(s): 2b2d2db

feat: dockerfile

Browse files
Files changed (2) hide show
  1. .dockerignore +57 -0
  2. Dockerfile +15 -0
.dockerignore ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /.idea
2
+ /node_modules
3
+ /data*
4
+ /cypress
5
+ /out
6
+ /test
7
+ /kubernetes
8
+ /.do
9
+ **/.dockerignore
10
+ /private
11
+ **/.git
12
+ **/.gitignore
13
+ **/docker-compose*
14
+ **/[Dd]ockerfile*
15
+ LICENSE
16
+ README.md
17
+ .editorconfig
18
+ .vscode
19
+ .eslint*
20
+ .stylelint*
21
+ /.devcontainer
22
+ /.github
23
+ yarn.lock
24
+ app.json
25
+ CODE_OF_CONDUCT.md
26
+ CONTRIBUTING.md
27
+ CNAME
28
+ install.sh
29
+ SECURITY.md
30
+ tsconfig.json
31
+ .env
32
+ /tmp
33
+ /ecosystem.config.js
34
+ /extra/healthcheck.exe
35
+ /extra/healthcheck
36
+ /extra/exe-builder
37
+ /extra/push-examples
38
+ /extra/uptime-kuma-push
39
+
40
+ # Comment the following line if you want to rebuild the healthcheck binary
41
+ /extra/healthcheck-armv7
42
+
43
+
44
+ ### .gitignore content (commented rules are duplicated)
45
+
46
+ #node_modules
47
+ .DS_Store
48
+ #dist
49
+ dist-ssr
50
+ *.local
51
+ #.idea
52
+
53
+ #/data
54
+ #!/data/.gitkeep
55
+ #.vscode
56
+
57
+ ### End of .gitignore content
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"]