Download Dockerfile from Awaaaaa/Claude: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/Awaaaaa/Claude/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Awaaaaa/Claude/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Awaaaaa/Claude/resolve/main/Dockerfile
580 Bytes
| #2. 准备一个Dockerfile,内容如下: | |
| #dockerfile | |
| FROM node:20.4 | |
| WORKDIR /app | |
| COPY . . | |
| RUN git clone https://github.com/March7th2048/clewd.git | |
| RUN npm install | |
| EXPOSE 3000 | |
| CMD ["node", "clewd.js"] | |
| # 这会使用节点版本大于20.4的镜像,复制项目代码,安装依赖,并运行server.js启动应用。 | |
| #3. 使用Dockerfile构建镜像: | |
| docker build -t clewd . | |
| #4. 运行容器: | |
| docker run -p 3000:3000 clewd | |
| #这会将容器内的3000端口映射到主机的3000端口。 | |
| #5. 访问主机的3000端口即可访问clewd应用。 | |
| curl localhost:3000 | |