All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 22s
11 lines
205 B
Docker
11 lines
205 B
Docker
# 使用官方 Nginx 镜像
|
|
FROM nginx:alpine
|
|
|
|
# 拷贝所有静态文件到 nginx 默认目录
|
|
COPY . /usr/share/nginx/html
|
|
|
|
# 暴露 80 端口
|
|
EXPOSE 80
|
|
|
|
# 启动 nginx
|
|
CMD ["nginx", "-g", "daemon off;"] |