Download Dockerfile from eithney/MagicPot: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/spaces/eithney/MagicPot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/eithney/MagicPot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/eithney/MagicPot/resolve/main/Dockerfile
702 Bytes
| # 使用官方nginx镜像作为基础镜像 | |
| FROM nginx:alpine | |
| # 设置维护者信息 | |
| LABEL maintainer="MagicPot Game Developer" | |
| LABEL description="MagicPot - 魔法锅游戏 Docker镜像" | |
| # 删除默认的nginx配置 | |
| RUN rm /etc/nginx/conf.d/default.conf | |
| # 复制自定义nginx配置 | |
| COPY nginx.conf /etc/nginx/conf.d/ | |
| # 复制项目文件到nginx的html目录 | |
| COPY index.html /usr/share/nginx/html/ | |
| COPY css/ /usr/share/nginx/html/css/ | |
| COPY js/ /usr/share/nginx/html/js/ | |
| COPY assets/ /usr/share/nginx/html/assets/ | |
| COPY *.mp3 /usr/share/nginx/html/ | |
| # 设置正确的文件权限 | |
| RUN chmod -R 755 /usr/share/nginx/html | |
| # 暴露80端口 | |
| EXPOSE 80 | |
| # 启动nginx | |
| CMD ["nginx", "-g", "daemon off;"] | |