From 6f6990f5da56a65155a956d3559224c8a6a7afb7 Mon Sep 17 00:00:00 2001 From: jerry Date: Wed, 30 Jan 2019 23:47:32 +0800 Subject: [PATCH] :rocket: update Dockerfile --- docker/Dockerfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 592f1ce2..f9dbe4f4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,18 +1,19 @@ FROM php:7.2 WORKDIR /root -ENV LANG="en_US.UTF-8" -RUN apt-get update && apt-get upgrade -y && apt-get install curl libxml2 libzip-dev git -y +RUN echo "Asia/Shanghai" > /etc/timezone +RUN dpkg-reconfigure -f noninteractive tzdata +ENV LANG C.UTF-8 +RUN apt-get update && apt-get install curl libxml2 libzip-dev openssl git -y # Install php extensions -RUN docker-php-ext-install zip mysqli iconv mbstring json +RUN docker-php-ext-install zip +RUN docker-php-ext-install mysqli +RUN docker-php-ext-install iconv +RUN docker-php-ext-install mbstring -# Install swoole -#ADD https://github.com/swoole/swoole-src/archive/v4.2.9.tar.gz /root/v4.2.9.tar.gz -#RUN cd /root/ && tar -zxvf v4.2.9.tar.gz && cd swoole-src-4.2.9/ && phpize && \ -# ./configure && make && make install RUN pecl install swoole RUN docker-php-ext-enable swoole VOLUME ["/root/"] -CMD if [ ! -d "CQBot-swoole" ]; then git clone https://github.com/crazywhalecc/CQBot-swoole.git; fi && cd CQBot-swoole/ && bash -c "php start.php" +CMD if [ ! -d "CQBot-swoole" ]; then git clone https://github.com/crazywhalecc/CQBot-swoole.git; fi && cd CQBot-swoole/ && bash -c "php start.php" \ No newline at end of file