use php8.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM --platform=$TARGETPLATFORM phpswoole/swoole:php7.4
|
||||
FROM --platform=$TARGETPLATFORM phpswoole/swoole:php8.0
|
||||
|
||||
# Installation dependencies and PHP core extensions
|
||||
RUN apt-get update \
|
||||
@@ -23,28 +23,33 @@ RUN apt-get update \
|
||||
libfreetype6-dev \
|
||||
inotify-tools \
|
||||
sshpass \
|
||||
cron \
|
||||
&& echo "* * * * * sh /var/www/docker/crontab/crontab.sh" > /tmp/crontab \
|
||||
&& crontab /tmp/crontab \
|
||||
&& rm -rf /tmp/crontab \
|
||||
&& curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
|
||||
&& apt-get -y install nodejs \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install pdo_mysql gd pcntl zip \
|
||||
&& echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list \
|
||||
cron
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
|
||||
&& apt-get -y install nodejs
|
||||
|
||||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install pdo_mysql gd pcntl zip
|
||||
|
||||
RUN mkdir -p /usr/src/php/ext/redis \
|
||||
&& curl -L https://github.com/phpredis/phpredis/archive/5.3.2.tar.gz | tar xvz -C /usr/src/php/ext/redis --strip 1 \
|
||||
&& echo 'redis' >> /usr/src/php-available-exts \
|
||||
&& docker-php-ext-install redis
|
||||
|
||||
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list \
|
||||
&& echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list \
|
||||
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y wireguard openresolv ansible openssh-client \
|
||||
&& mkdir -p /usr/src/php/ext/redis \
|
||||
&& curl -L https://github.com/phpredis/phpredis/archive/5.3.2.tar.gz | tar xvz -C /usr/src/php/ext/redis --strip 1 \
|
||||
&& echo 'redis' >> /usr/src/php-available-exts \
|
||||
&& docker-php-ext-install redis \
|
||||
&& rm -r /var/lib/apt/lists/*
|
||||
&& apt-get install -y wireguard openresolv ansible openssh-client
|
||||
|
||||
RUN echo "* * * * * sh /var/www/docker/crontab/crontab.sh" > /tmp/crontab \
|
||||
&& crontab /tmp/crontab \
|
||||
&& rm -rf /tmp/crontab
|
||||
|
||||
RUN rm -r /var/lib/apt/lists/*
|
||||
|
||||
# Set the WORKDIR to /var/www so all following commands run in /var/www
|
||||
WORKDIR /var/www
|
||||
|
||||
# docker buildx create --use
|
||||
# docker buildx build --platform linux/arm64,linux/amd64 -t kuaifan/phpdootask --push -f ./php.Dockerfile .
|
||||
# docker buildx build --platform linux/arm64,linux/amd64 -t kuaifan/dootaskphp:8.0 --push -f ./php.Dockerfile .
|
||||
# 需要 docker login 到 docker hub, 用户名 (docker id): kuaifan
|
||||
|
||||
Reference in New Issue
Block a user