Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
@@ -1,7 +1,15 @@
|
|
1 |
-
FROM
|
|
|
2 |
|
3 |
-
|
4 |
|
5 |
-
RUN
|
|
|
|
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|