Spaces:
Paused
Paused
Download Dockerfile from m4d3bug/uptime-kuma: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/m4d3bug/uptime-kuma/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/m4d3bug/uptime-kuma/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/m4d3bug/uptime-kuma/resolve/main/Dockerfile
683 Bytes
| FROM alpine AS builder | |
| # 安装必要的工具 | |
| RUN apk add --no-cache nodejs npm git bash vim | |
| # 全局安装npm | |
| RUN npm install npm -g | |
| # 创建用户 | |
| RUN adduser -D app | |
| USER app | |
| # 设置工作目录 | |
| WORKDIR /home/app | |
| # 克隆项目 | |
| RUN git clone https://github.com/louislam/uptime-kuma.git | |
| # 进入项目目录并运行设置 | |
| WORKDIR /home/app/uptime-kuma | |
| RUN npm run setup | |
| RUN sed -i 's/api.telegram.org/tgbot.m4d3bug.com/g' /home/app/uptime-kuma/src/components/notifications/Telegram.vue && \ | |
| sed -i 's/api.telegram.org/tgbot.m4d3bug.com/g' /home/app/uptime-kuma/server/notification-providers/telegram.js | |
| # 暴露端口 | |
| EXPOSE 3001 | |
| # 启动命令 | |
| CMD ["npm", "start"] |