-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 修复低版本PHP测试 * test * test * test * test * test
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG PHP_DOCKER_VERSION | ||
FROM php:${PHP_DOCKER_VERSION}-cli | ||
|
||
RUN sed -i s/httpredir.debian.org/archive.debian.org/g /etc/apt/sources.list | ||
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list | ||
|
||
RUN sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list | ||
|
||
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list | ||
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list | ||
RUN sed -i '/jessie\/updates/d' /etc/apt/sources.list | ||
|
||
RUN apt update --allow-unauthenticated | ||
|
||
RUN apt install --allow-unauthenticated -y --force-yes unzip ca-certificates | ||
|
||
RUN docker-php-ext-install pcntl > /dev/null | ||
|
||
RUN curl -o /usr/bin/composer https://getcomposer.org/composer-1.phar && chmod +x /usr/bin/composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters