PHP容器化demo
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.

20 lines
689 B

3 years ago
  1. # gq-hello-nginx.dockerfile
  2. # Dockerfile for demo gq-hello-nginx
  3. # This docker file base on harbor02.juejin.id/lib/php:7.2.9-fpm-alpine3.8
  4. # @version 180719:2
  5. # @author zhangxuhong <zhangxuhong@xitu.io>
  6. #
  7. # base info
  8. FROM harbor02.juejin.id/infrastructure/nginx-1.14.0-centos:latest
  9. MAINTAINER zhangxuhong <zhangxuhong@xitu.io>
  10. USER root
  11. # copy config to /data/apps/nginx/conf/vhost/
  12. COPY ./config/nginx/ /data/apps/nginx/conf/vhost/
  13. # define health check
  14. 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
  15. # run php-fpm
  16. EXPOSE 80
  17. ENTRYPOINT ["/data/apps/nginx/sbin/nginx", "-g", "daemon off;"]