初始化,创建nginx 相关配置
This commit is contained in:
+15
@@ -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;"]
|
||||
Reference in New Issue
Block a user