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.
 
 

25 lines
639 B

# gq-hello.dockerfile
# Dockerfile for demo gq-hello
# 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/php-7.2.9-fpm-alpine3.8:latest
MAINTAINER zhangxuhong <zhangxuhong@xitu.io>
USER root
# init
# RUN apk add --update --no-cache --virtual .build-deps \
# copy repo to /data/repo
COPY . /data/repo/gq-hello/
# define health check
HEALTHCHECK --interval=5s --timeout=3s CMD netstat -an | grep 9000 > /dev/null; if [ 0 != $? ]; then exit 1; fi;
# run php-fpm
EXPOSE 9000
ENTRYPOINT ["php-fpm"]