初始化,创建nginx 相关配置

This commit is contained in:
zk
2026-05-27 11:26:22 +08:00
commit bc4c3200d9
7 changed files with 290 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM nginx:alpine
# 删除默认配置
RUN rm /etc/nginx/conf.d/default.conf
# 复制自定义配置
COPY nginx.conf /etc/nginx/nginx.conf
# 复制 SSL 证书
COPY certificate/ /etc/nginx/ssl/
# 暴露端口
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]