This commit is contained in:
张鑫
2025-11-01 14:51:19 +08:00
parent be7bc940a8
commit b2d7ccd8fd
4 changed files with 154 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# 使用官方Nginx镜像作为基础镜像
FROM nginx:alpine
# 设置工作目录
WORKDIR /usr/share/nginx/html
# 复制应用文件到容器中
COPY index.html .
COPY styles.css .
COPY app.js .
# 暴露80端口
EXPOSE 80
# 启动Nginx
CMD ["nginx", "-g", "daemon off;"]