mc6 commited on
Commit
ef40d5e
·
verified ·
1 Parent(s): 62aa12b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -7
Dockerfile CHANGED
@@ -1,23 +1,16 @@
1
  FROM alpine AS builder
2
-
3
  RUN apk add --no-cache nodejs npm git curl jq python3 python3-dev py3-pip
4
-
5
  RUN adduser -D app
6
  USER app
7
  WORKDIR /home/app
8
-
9
  RUN git clone https://github.com/louislam/uptime-kuma.git
10
  WORKDIR /home/app/uptime-kuma
11
  RUN npm run setup
12
-
13
  ENV VIRTUAL_ENV=/home/app/venv
14
  RUN python3 -m venv $VIRTUAL_ENV
15
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
16
-
17
  RUN pip install --no-cache-dir requests webdavclient3
18
-
19
  COPY --chown=app:app sync_data.sh /home/app/uptime-kuma/
20
  RUN chmod +x /home/app/uptime-kuma/sync_data.sh
21
-
22
  EXPOSE 3001
23
  CMD ["/bin/sh", "-c", "./sync_data.sh & node server/server.js"]
 
1
  FROM alpine AS builder
 
2
  RUN apk add --no-cache nodejs npm git curl jq python3 python3-dev py3-pip
 
3
  RUN adduser -D app
4
  USER app
5
  WORKDIR /home/app
 
6
  RUN git clone https://github.com/louislam/uptime-kuma.git
7
  WORKDIR /home/app/uptime-kuma
8
  RUN npm run setup
 
9
  ENV VIRTUAL_ENV=/home/app/venv
10
  RUN python3 -m venv $VIRTUAL_ENV
11
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
 
12
  RUN pip install --no-cache-dir requests webdavclient3
 
13
  COPY --chown=app:app sync_data.sh /home/app/uptime-kuma/
14
  RUN chmod +x /home/app/uptime-kuma/sync_data.sh
 
15
  EXPOSE 3001
16
  CMD ["/bin/sh", "-c", "./sync_data.sh & node server/server.js"]