16 lines
303 B
Docker
16 lines
303 B
Docker
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;"]
|