|
@@ -15,12 +15,10 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
|
|
# echo "deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib" >>/etc/apt/sources.list && \
|
|
|
# echo "deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib" >>/etc/apt/sources.list && \
|
|
|
# echo "deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib" >>/etc/apt/sources.list
|
|
|
-
|
|
|
# Utils
|
|
|
RUN apt-get update && \
|
|
|
- apt-get install -y libssl-dev libaio-dev procps wget vim zip unzip git net-tools dnsutils && \
|
|
|
+ apt-get install -y libssl-dev libaio-dev net-tools dnsutils && \
|
|
|
apt-get clean
|
|
|
-
|
|
|
# Composer
|
|
|
RUN curl -sS https://getcomposer.org/installer | php && \
|
|
|
mv composer.phar /usr/local/bin/composer && \
|
|
@@ -46,19 +44,12 @@ RUN echo "Installing Core Libs..." && \
|
|
|
|
|
|
# Redis
|
|
|
pecl install redis && \
|
|
|
- docker-php-ext-enable redis && \
|
|
|
-
|
|
|
- # swoole
|
|
|
- pecl install swoole && \
|
|
|
- docker-php-ext-enable swoole
|
|
|
+ docker-php-ext-enable redis
|
|
|
|
|
|
# ZIP
|
|
|
RUN apt-get install -y libzip-dev && \
|
|
|
docker-php-ext-install -j$(nproc) zip
|
|
|
|
|
|
-## Crontab
|
|
|
-RUN apt-get install -y cron
|
|
|
-
|
|
|
# Expose port 9000
|
|
|
EXPOSE 9000
|
|
|
|