pushdeer/docker/web/Dockerfile

32 lines
1.1 KiB
Docker
Raw Normal View History

2021-12-23 00:19:55 +08:00
FROM webdevops/php-apache:8.0
# 首先配置 vhost
COPY vhost.conf /opt/docker/etc/httpd/vhost.conf
# COPY web.vhost.conf /opt/docker/etc/httpd/vhost.common.d/
# 然后运行初始化脚本
# https://dockerfile.readthedocs.io/en/latest/content/Customization/provisioning.html
COPY init.sh /opt/docker/provision/entrypoint.d/
#CMD chmod +x /opt/docker/provision/entrypoint.d/init.sh
2022-01-19 14:29:08 +08:00
RUN echo "session.save_handler = redis\n" >> /opt/docker/etc/php/php.webdevops.ini
RUN echo "session.save_path = 'tcp://redis:6379'\n" >> /opt/docker/etc/php/php.webdevops.ini
2022-01-19 17:13:12 +08:00
RUN echo "session.gc_maxlifetime = '259200'\n" >> /opt/docker/etc/php/php.webdevops.ini
2021-12-23 00:19:55 +08:00
# ADD supervisord-proxy.conf /opt/docker/etc/supervisor.d/prism-proxy.conf
RUN mkdir /data
COPY gorush /data/gorush
RUN chmod +x /data/gorush
ADD supervisord-ios.conf /opt/docker/etc/supervisor.d/push-ios.conf
ADD supervisord-clip.conf /opt/docker/etc/supervisor.d/push-clip.conf
2022-03-22 14:31:54 +08:00
ADD larave-cron /etc/cron.d
RUN chmod +x /etc/cron.d/larave-cron
2022-05-21 00:12:22 +08:00
# 配置 https
# 在本目录下创建ssl目录放入证书server.crtserver.key然后去掉下一行的注释
# ADD ssl /app/ssl
2021-12-23 00:19:55 +08:00
EXPOSE 80