Download Dockerfile from bufe/TTS: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/bufe/TTS/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bufe/TTS/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bufe/TTS/resolve/main/Dockerfile
482 Bytes
| # 使用Deno官方镜像作为基础镜像 | |
| FROM denoland/deno:alpine-1.24.0 | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 将当前目录下的所有文件复制到工作目录中 | |
| COPY . . | |
| # 设置环境变量(如果需要AUTH_TOKEN,可以取消注释并设置值) | |
| # ENV AUTH_TOKEN=your_auth_token | |
| # 暴露服务端口(假设你的服务运行在80端口,如果不同请修改) | |
| EXPOSE 8000 | |
| # 运行服务 | |
| CMD ["run", "--allow-net", "--allow-env", "main.ts"] | |