Skip to content

Commit 0c32f28

Browse files
update dockerfile
1 parent ea77f00 commit 0c32f28

File tree

6 files changed

+12
-5221
lines changed

6 files changed

+12
-5221
lines changed

php/7.0.33/Dockerfile

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
FROM php:7.0.33-fpm AS php-source
88

9-
FROM debian:bullseye-slim
9+
FROM debian:bookworm-slim
1010
ARG INSTALL_EXT_VERSION
1111

1212
# prevent Debian's PHP packages from being installed
@@ -58,8 +58,8 @@ ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
5858

5959
#ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
6060

61-
ENV PHP_VERSION=7.0.33
62-
ENV PHP_URL="https://secure.php.net/get/php-7.0.33.tar.xz/from/this/mirror" PHP_ASC_URL="https://secure.php.net/get/php-7.0.33.tar.xz.asc/from/this/mirror"
61+
#ENV PHP_VERSION=7.0.33
62+
#ENV PHP_URL="https://secure.php.net/get/php-7.0.33.tar.xz/from/this/mirror" PHP_ASC_URL="https://secure.php.net/get/php-7.0.33.tar.xz.asc/from/this/mirror"
6363
#ENV PHP_SHA256="ff6f62afeb32c71b3b89ecbd42950ef6c5e0c329cc6e1c58ffac47e6f1f883c4" PHP_MD5=""
6464

6565
RUN set -xe; \
@@ -78,32 +78,9 @@ RUN set -xe; \
7878
rm -rf /var/lib/apt/lists/*; \
7979
\
8080
mkdir -p /usr/src; \
81-
cd /usr/src; \
82-
\
83-
wget -O php.tar.xz "$PHP_URL"; \
84-
\
85-
# if [ -n "$PHP_SHA256" ]; then \
86-
# echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; \
87-
# fi; \
88-
# if [ -n "$PHP_MD5" ]; then \
89-
# echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; \
90-
# fi; \
91-
# \
92-
# if [ -n "$PHP_ASC_URL" ]; then \
93-
# wget -O php.tar.xz.asc "$PHP_ASC_URL"; \
94-
# export GNUPGHOME="$(mktemp -d)"; \
95-
# for key in $GPG_KEYS; do \
96-
# gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
97-
# done; \
98-
# gpg --batch --verify php.tar.xz.asc php.tar.xz; \
99-
# command -v gpgconf > /dev/null && gpgconf --kill all; \
100-
# rm -rf "$GNUPGHOME"; \
101-
# fi; \
102-
# \
10381
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps
10482

105-
#COPY docker-php-source /usr/local/bin/
106-
83+
COPY ./data/php-7.0.33.tar.xz /usr/src/php.tar.xz
10784
COPY --from=php-source /usr/local/bin/docker-php-source /usr/local/bin/
10885

10986
RUN set -eux; \

php/7.0.33/data/composer

-2.86 MB
Binary file not shown.

0 commit comments

Comments
 (0)