添加测试环境
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
# 删除默认配置
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
|
||||
# 复制测试环境配置
|
||||
COPY nginx.test.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