feat: create ci

This commit is contained in:
2023-12-25 00:25:13 +08:00
parent 348a826919
commit e9a93d8686
2 changed files with 48 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# 使用官方的 Nginx 镜像作为基础镜像
FROM nginx:latest
# 定义工作目录
WORKDIR /usr/share/nginx/html
# 移除默认的 Nginx 静态资源
RUN rm -rf ./*
# 将静态网页内容复制到容器中
COPY . /usr/share/nginx/html
# 暴露端口 80
EXPOSE 80
# 启动 Nginx 服务
CMD ["nginx", "-g", "daemon off;"]