```
FROM php:7.4-fpm
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ARG TZ="Asia/Shanghai"
ENV TZ=${TZ}
# 替换软件源为阿里云
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
apt-get update
# 安装系统依赖
RUN apt-get install -y \
vim \
zip \
unzip \
curl \
wget \
git \
libzip-dev \
libpng-dev \
libfreetype6-dev \
libssl-dev \
libmemcached-dev \
libpq-dev \
libxml2-dev \
libmagickwand-dev \
libxslt-dev \
libicu-dev \
libonig-dev \
libwebp-dev \
libxpm-dev \
libgmp-dev \
libbz2-dev \
libsqlite3-dev \
libgdbm-dev \
libreadline-dev \
libyaml-dev \
libcurl4-openssl-dev \
libffi-dev \
libldap2-dev \
libpspell-dev \
libaspell-dev \
libsnmp-dev \
libtidy-dev \
libzip-dev && \
rm -rf /var/lib/apt/lists/*
# 安装依赖库
RUN apt-get update && \
apt-get install -y librabbitmq-dev libssh-dev
# 配置和安装PHP扩展
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp && \
docker-php-ext-install -j$(nproc) \
gd \
bcmath \
bz2 \
calendar \
exif \
gettext \
mysqli \
opcache \
pdo_mysql \
pdo_pgsql \
pgsql \
soap \
sockets \
sysvmsg \
sysvsem \
sysvshm \
tidy \
xmlrpc \
xsl \
zip \
gmp && \
pecl install \
redis \
mongodb-1.9.1 \
imagick \
memcached \
xlswriter \
amqp && \
docker-php-ext-enable \
redis \
mongodb \
imagick \
memcached \
xlswriter \
amqp
# 安装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/
WORKDIR /wwwroot
CMD ["php-fpm"]
```
- 序言
- 开始JK部署[单台服务器](非宝塔)
- 1.开始安装jenkins
- 2.登录且配置JK面板
- Linux系统
- Windows系统
- 3.创建自动化部署任务
- Linux Centos7.9系统
- Linux部署文件
- docker
- docker-compose.yml
- jenkins_home文件夹
- mongo文件夹
- mysql文件夹
- my.cnf
- log文件夹
- data文件夹
- nginx文件夹
- nginx.conf
- logs文件夹
- html文件夹
- conf.d文件夹
- default.conf
- www.conf
- php目录
- logs目录
- php74目录
- Dockerfile
- php.ini
- rabbitmq目录
- redis目录
- logs目录文件夹
- redis.conf
- wwwroot目录
- default文件夹
- index.html
- index.php
- test目录
- dev
- production
- shell脚本
- test.sh
- al7.sh
- 问题总结
- Linux备份
- 宝塔部署
- 安装脚本
- 开始部署
- 宝塔自己的docker jk容器部署
- 自己编写的yml jk部署
- 流程开始
- 问题总结