Docker + nginx + MySQL + PHP
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.

19 lines
390 B

4 years ago
FROM php:7.3-fpm-alpine3.12
4 years ago
#设置时区,仅Debian需要
#ENV TZ=Asia/Shanghai
4 years ago
#工作目录
WORKDIR /root
#复制安装脚本
COPY ./install.sh /root
#复制启动脚本
COPY ./run.sh /usr/sbin
#执行安装脚本
4 years ago
RUN sh install.sh
4 years ago
#暴露配置文件
4 years ago
VOLUME /etc/nginx/conf.d
4 years ago
VOLUME /var/www/html
4 years ago
VOLUME /var/log/nginx
4 years ago
EXPOSE 80
EXPOSE 443
#运行crontab和nginx
CMD ["/usr/sbin/run.sh"]