DockerFile内容:
```
FROM php:7.2-fpm
ARG TZ="Asia/Shanghai"
ENV TZ=${TZ}
# RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak && echo "\
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib \n\
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib \n\
deb http://mirrors.aliyun.com/debian-security buster/updates main \n\
deb-src http://mirrors.aliyun.com/debian-security buster/updates main \n\
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib \n\
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib \n\
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib \n\
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib "\
> /etc/apt/sources.list
# Composer
RUN curl -sS https://install.phpcomposer.com/installer | php && \
mv composer.phar /usr/local/bin/composer && \
composer self-update --clean-backups && \
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
# Utils
RUN apt-get update && \
apt-get install -y libc6-dev libssl-dev libaio-dev procps wget vim zip unzip git net-tools dnsutils && \
apt-get clean
# Core Libs
RUN echo "Installing Core Libs..." && \
#gd
apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-install -j$(nproc) gd && \
# bcmath
docker-php-ext-install bcmath && \
# sockets
docker-php-ext-install sockets && \
# Supervisor
apt-get install -y supervisor
# Crontab
RUN apt-get install -y cron
# MySQL extension
RUN docker-php-ext-install mysqli && \
docker-php-ext-install pdo_mysql
# Redis
RUN pecl install redis && \
docker-php-ext-enable redis
# MongoDB
RUN pecl install mongodb && \
docker-php-ext-enable mongodb
# ZIP
RUN apt-get install -y libzip-dev && \
docker-php-ext-install -j$(nproc) zip
# xlswriter
RUN pecl install xlswriter
EXPOSE 9000
WORKDIR /www
ENTRYPOINT ["bash","-c","supervisord -n -c /etc/supervisor/supervisord.conf"]
```
- Docker容器化部署使用说明书
- 环境部署
- Windows系统
- Windows部署Docker
- 安装过程可能碰到的问题总结
- Docker部署环境
- Docker hub操作
- Docker 部署 laravel5.5问题总结
- Docker处理中文乱码问题
- Linux系统
- Centos7.2部署Docker
- Linux部署Docker准备前工作
- 部署docker问题总结
- Linux部署Docker粗略笔记
- 安装git
- Docker命令大全
- 问题
- php7.4 安装xlswriter扩展
- php7.2 DockerFile文件
- dockerFile和docker-composer区别
- docker-compose的使用
- docker-compose的使用问题总结
- docker-compose
- Windows系统
- docker-compose.yml编写
- nginx目录如下
- conf.d
- default.conf
- nginx.conf
- php目录如下
- Dockerfile
- redis目录如下
- redis.conf
- docker-compose使用说明
- Linux系统
- /workspace/html/config_dev
- html
- index.html
- index.php
- nginx
- conf
- nginx.production.conf
- conf.d
- default.conf
- log
- access.log
- error.log
- Dockerfile
- php
- conf
- php.production.ini
- php-fpm.conf
- log(目录)
- php-fpm.d
- www.conf
- supervisor
- conf
- log
- Dockerfile
- .env
- docker-compose.yml