Download Dockerfile from Yuan2006/CS: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/Yuan2006/CS/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Yuan2006/CS/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Yuan2006/CS/resolve/main/Dockerfile
399 Bytes
| # 使用 Node.js 的 Alpine 版本 | |
| FROM node:lts-alpine | |
| # 暴露端口 | |
| EXPOSE 3000 | |
| # 设置时区 | |
| ENV TZ=Asia/Shanghai | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 安装必要的工具和依赖 | |
| RUN apk add --no-cache git yarn tzdata | |
| # 克隆代码到当前目录 | |
| RUN git clone https://github.com/Raimbaulty/censor.git . | |
| # 安装项目依赖 | |
| RUN yarn install | |
| # 启动应用 | |
| CMD ["npm", "run", "start"] |