Download Dockerfile from YYapi/up: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/spaces/YYapi/up/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/YYapi/up/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/YYapi/up/resolve/main/Dockerfile
923 Bytes
| FROM chipsman/uptime-kuma:latest | |
| # 安装 Node.js | |
| RUN apk update && \ | |
| apk add --no-cache nodejs npm git | |
| # 设置目录权限 | |
| RUN mkdir -p /app/data && chown -R node:node /app | |
| RUN npm install npm -g | |
| USER root | |
| RUN apk --no-cache add curl supervisor | |
| # 创建 Supervisor 日志目录并设置权限 | |
| RUN mkdir -p /var/log/supervisor/ && \ | |
| chown -R node:node /var/log/supervisor/ | |
| # 创建 Supervisor 运行目录并设置权限 | |
| RUN mkdir -p /var/run/supervisor/ && \ | |
| chown -R node:node /var/run/supervisor/ | |
| USER root | |
| WORKDIR /home/app | |
| RUN curl -LO https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && \ | |
| chmod +x cloudflared-linux-amd64 && \ | |
| mv cloudflared-linux-amd64 /usr/local/bin/cloudflared | |
| COPY ../supervisor.conf /etc/supervisor/supervisord.conf | |
| COPY ../start.sh /usr/bin/start.sh | |
| USER node | |
| WORKDIR /app | |
| EXPOSE 3001 | |
| CMD ["sh", "/usr/bin/start.sh"] |