FROM alpine:3.13
MAINTAINER liux<sirliux@foxmail.com>
# Install time zone plug-ins and optimize time and download sources
RUN apk --no-cache add tzdata \
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
&& apk update \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
ENV TZ Asia/Shanghai
# The installation runs dependent plug-in packages
RUN apk add --no-cache \
build-base zlib-dev \
php \
php-gd \
php-xml \
php-sockets \
php-session \
php-mysqlnd \
php-mysqli \
php7-mbstring \
php7-fpm \
php7-common \
php7-dev \
php7-embed \
php7-pecl-mcrypt \
php7-pdo \
php7-opcache \
php7-pecl-memcached \
php7-pdo_sqlite \
php7-json
# Create a php run user
RUN addgroup www && adduser www -H -D -G www -s /sbin/nologin
# Copy files to containers
ADD showdoc.tar.gz /www
COPY www.conf /etc/php7/php-fpm.d/www.conf
# Set file permissions
RUN chown -R www.www /www && \
chmod -R 777 /www
EXPOSE 9000
CMD php-fpm7 && tail -f /etc/passwd
Dockerfile PHP
未经允许不得转载:劉大帥 » Dockerfile PHP
最新评论
# 这只是一个创建远程登录并授权的语句、仅作为记录 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Fit2cloud!' WITH GRANT OPTION;
当MGR集群初始化结束后,需要开启MGR集群自启动(需要有一台节点是自动开启引导) loose-group_replication_start_on_boot = ON #设置节点是否在启动时自动启动 MGR 集群 loose-group_replication_bootstrap_group = ON #设置节点是否作为初始引导节点启动集群
密码:blog.sirliu.com
本内容密码:blog.sirliu.com 最新整理的文章在这里喔:https://blog.sirliu.com/2018/11/shell_lian_xi_ti.html