uptime-kuma/dockerfile

15 lines
264 B
Text
Raw Normal View History

FROM node:14-alpine3.14
# sqlite have to build on arm
RUN apk add --no-cache make g++ python3
RUN ln -s /usr/bin/python3 /usr/bin/python
2021-07-11 06:20:31 +00:00
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
EXPOSE 3001
VOLUME ["/app/data"]
CMD ["npm", "run", "start-server"]