Download Dockerfile from deeme/hf: direct link, hf CLI and curl.
- Browser
- Download file 231 Bytes
-
https://huggingface.co/spaces/deeme/hf/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/deeme/hf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/deeme/hf/resolve/main/Dockerfile
231 Bytes
| FROM node:18-alpine | |
| WORKDIR /app | |
| # 安装依赖 | |
| COPY package.json . | |
| RUN npm install --production | |
| # 复制代码 | |
| COPY . . | |
| # 暴露端口 | |
| EXPOSE 8080 | |
| ENV TZ=Asia/Shanghai | |
| # 启动应用 | |
| CMD ["npm", "start"] | |