Download Dockerfile from Rouder/proxy_db: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/spaces/Rouder/proxy_db/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rouder/proxy_db/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rouder/proxy_db/resolve/main/Dockerfile
340 Bytes
| FROM node:14-alpine | |
| WORKDIR /app | |
| # 安装依赖(使用独立层加速重建) | |
| COPY package.json package-lock.json ./ | |
| RUN npm install --production | |
| # 复制应用代码 | |
| COPY proxy.js ./ | |
| # 健康检查 | |
| HEALTHCHECK --interval=30s --timeout=3s \ | |
| CMD wget -qO- http://localhost:${PORT}/health || exit 1 | |
| EXPOSE 3000 | |
| CMD ["npm", "start"] |