uptime-kuma/dockerfile

20 lines
400 B
Text
Raw Normal View History

FROM node:14-alpine3.14
WORKDIR /app
RUN apk add --no-cache make g++ python3 py3-pip python3-dev
RUN ln -s /usr/bin/python3 /usr/bin/python
2021-07-11 09:20:31 +03:00
# split the sqlite install here, so that it can caches the arm prebuilt
RUN npm install sqlite3@5.0.2
2021-07-11 09:20:31 +03:00
COPY . .
RUN npm install
RUN npm run build
2021-07-13 18:29:40 +03:00
# Remove built tools
RUN apk del make g++
2021-07-11 09:20:31 +03:00
EXPOSE 3001
VOLUME ["/app/data"]
CMD ["npm", "run", "start-server"]