|
|
- # gq-hello-nginx.dockerfile
- # Dockerfile for demo gq-hello-nginx
- # This docker file base on harbor02.juejin.id/lib/php:7.2.9-fpm-alpine3.8
- # @version 180719:2
- # @author zhangxuhong <zhangxuhong@xitu.io>
- #
-
- # base info
- FROM harbor02.juejin.id/infrastructure/nginx-1.14.0-centos:latest
- MAINTAINER zhangxuhong <zhangxuhong@xitu.io>
- USER root
-
- # copy config to /data/apps/nginx/conf/vhost/
- COPY ./config/nginx/ /data/apps/nginx/conf/vhost/
-
- # define health check
- HEALTHCHECK --interval=5s --timeout=3s CMD curl -fs http://127.0.0.1:80/status?src=docker_health_check -H"Host:gq-hello.juejin.im" || exit 1
-
- # run php-fpm
- EXPOSE 80
- ENTRYPOINT ["/data/apps/nginx/sbin/nginx", "-g", "daemon off;"]
|