mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-09 23:24:07 -08:00
19 lines
374 B
Plaintext
19 lines
374 B
Plaintext
FROM node:14-alpine3.14
|
|
|
|
# sqlite have to build on arm
|
|
# 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
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
# Remove built tools
|
|
RUN apk del make g++
|
|
|
|
EXPOSE 3001
|
|
VOLUME ["/app/data"]
|
|
CMD ["npm", "run", "start-server"]
|