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