1234567891011 |
- FROM nginx:stable-alpine
- RUN echo "http://mirrors.aliyun.com/alpine/v3.6/main/" > /etc/apk/repositories
- RUN apk update && apk add tzdata \
- && rm -f /etc/localtime \
- && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- COPY nginx.conf /etc/nginx/nginx.conf
- EXPOSE 80
- CMD [ "nginx", "-g", "daemon off;" ]
|