You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
435 B

10 months ago
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:alpine
10 months ago
# 直接rm的话如果目标文件不存在就会报错这样就可以避免报错了
10 months ago
RUN if [ -f /etc/nginx/conf.d/default.conf ]; then rm /etc/nginx/conf.d/default.conf; fi
RUN if [ -f /etc/nginx/nginx.conf ]; then rm /etc/nginx/nginx.conf; fi
10 months ago
10 months ago
COPY nginx.conf /etc/nginx/
COPY default.conf /etc/nginx/conf.d/
COPY ds-base /usr/share/nginx/html/ds-base