1 Star 0 Fork 0

lolfans/nginx-php-supervisor-laravel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile2 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
有所向往 提交于 2019-11-29 11:02 . Update Dockerfile2
#该文件是因为老项目改造,PHP版本问题,所特制的dockerfile,新项目不必用此文件构建基础环境镜像
FROM bravist/php-fpm-alpine-aliyun-app:1.16
RUN apk add nginx
RUN mkdir -p /usr/share/nginx/html/public/
RUN mkdir -p /usr/local/var/log/php7/
RUN mkdir -p /usr/local/var/run/
COPY ./php/php-fpm.conf /etc/php7/
COPY ./php/www.conf /etc/php7/php-fpm.d/
COPY ./php/index.php /usr/share/nginx/html/public/
COPY ./nginx/default.conf /etc/nginx/conf.d/
COPY ./nginx/nginx.conf /etc/nginx/
# Expose volumes
VOLUME ["/usr/share/nginx/html", "/usr/local/var/log/php7", "/var/run/"]
WORKDIR /usr/share/nginx/html
#SUPERVISOR
RUN apk add supervisor \
&& rm -rf /var/cache/apk/*
# Define mountable directories.
VOLUME ["/etc/supervisor/conf.d", "/var/log/supervisor/"]
# Define working directory.
WORKDIR /usr/share/nginx/html
#crond
COPY ./supervisor/conf.d/ /etc/supervisor/conf.d/
COPY ./entrypoint.sh /usr/share/nginx/html/
RUN chmod +x /usr/share/nginx/html/entrypoint.sh
COPY ./crontabs/default /var/spool/cron/crontabs/
RUN cat /var/spool/cron/crontabs/default >> /var/spool/cron/crontabs/root
RUN mkdir -p /var/log/cron \
&& touch /var/log/cron/cron.log
VOLUME /var/log/cron
#CMD ["supervisord", "--nodaemon", "--configuration", "/etc/supervisor/conf.d/supervisord.conf"]
ENTRYPOINT ["./entrypoint.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lolfans/nginx-php-supervisor-laravel.git
[email protected]:lolfans/nginx-php-supervisor-laravel.git
lolfans
nginx-php-supervisor-laravel
nginx-php-supervisor-laravel
master

搜索帮助