Download Dockerfile from nestjs/pm2: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/nestjs/pm2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nestjs/pm2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nestjs/pm2/resolve/main/Dockerfile
499 Bytes
| FROM keymetrics/pm2:18-alpine | |
| # 安装 Nginx | |
| RUN apk add --no-cache nginx | |
| # 删除所有可能冲突的默认配置 | |
| RUN rm -f /etc/nginx/http.d/default.conf /etc/nginx/conf.d/*.conf | |
| # 复制你写好的完整 nginx.conf 到主配置位置 | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制项目文件 | |
| COPY package*.json ./ | |
| COPY ecosystem.config.js ./ | |
| COPY apps/ ./apps/ | |
| # 启动脚本 | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |