0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-22 11:47:30 +01:00
uptime-kuma/dockerfile

19 lines
374 B
Plaintext
Raw Normal View History

FROM node:14-alpine3.14
# sqlite have to build on arm
2021-07-13 06:24:33 +02:00
# TODO: use prebuilt sqlite for arm, because it is very very slow.
RUN apk add --no-cache make g++ python3
RUN ln -s /usr/bin/python3 /usr/bin/python
2021-07-11 08:20:31 +02:00
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
2021-07-13 17:29:40 +02:00
# Remove built tools
RUN apk del make g++
2021-07-11 08:20:31 +02:00
EXPOSE 3001
VOLUME ["/app/data"]
CMD ["npm", "run", "start-server"]