Skip to content

Commit aec1199

Browse files
committed
Add mysqli ext
1 parent 5bc2c19 commit aec1199

13 files changed

Lines changed: 104 additions & 0 deletions

File tree

7.2-nginx-prod/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ FROM kooldev/php:7.2-nginx-prod
33

44
ENV NGINX_ROOT=/app
55

6+
RUN echo "Building Deps" \
7+
# build-deps
8+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
9+
&& docker-php-ext-install -j$(nproc) mysqli \
10+
# cleanup
11+
&& apk del .build-deps \
12+
&& rm -rf /var/cache/apk/* /tmp/*
13+
614
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
715
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
816
COPY entrypoint /kool/entrypoint

7.2-nginx/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ FROM kooldev/php:7.2-nginx
33

44
ENV NGINX_ROOT=/app
55

6+
RUN echo "Building Deps" \
7+
# build-deps
8+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
9+
&& docker-php-ext-install -j$(nproc) mysqli \
10+
# cleanup
11+
&& apk del .build-deps \
12+
&& rm -rf /var/cache/apk/* /tmp/*
13+
614
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
715
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
816
COPY entrypoint /kool/entrypoint

7.2-prod/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ FROM wordpress:php7.2-fpm-alpine as wordpress
22
FROM kooldev/php:7.2-prod
33

44

5+
RUN echo "Building Deps" \
6+
# build-deps
7+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
8+
&& docker-php-ext-install -j$(nproc) mysqli \
9+
# cleanup
10+
&& apk del .build-deps \
11+
&& rm -rf /var/cache/apk/* /tmp/*
12+
513
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
614
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
715
COPY entrypoint /kool/entrypoint

7.2/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ FROM wordpress:php7.2-fpm-alpine as wordpress
22
FROM kooldev/php:7.2
33

44

5+
RUN echo "Building Deps" \
6+
# build-deps
7+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
8+
&& docker-php-ext-install -j$(nproc) mysqli \
9+
# cleanup
10+
&& apk del .build-deps \
11+
&& rm -rf /var/cache/apk/* /tmp/*
12+
513
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
614
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
715
COPY entrypoint /kool/entrypoint

7.3-nginx-prod/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ FROM kooldev/php:7.3-nginx-prod
33

44
ENV NGINX_ROOT=/app
55

6+
RUN echo "Building Deps" \
7+
# build-deps
8+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
9+
&& docker-php-ext-install -j$(nproc) mysqli \
10+
# cleanup
11+
&& apk del .build-deps \
12+
&& rm -rf /var/cache/apk/* /tmp/*
13+
614
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
715
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
816
COPY entrypoint /kool/entrypoint

7.3-nginx/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ FROM kooldev/php:7.3-nginx
33

44
ENV NGINX_ROOT=/app
55

6+
RUN echo "Building Deps" \
7+
# build-deps
8+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
9+
&& docker-php-ext-install -j$(nproc) mysqli \
10+
# cleanup
11+
&& apk del .build-deps \
12+
&& rm -rf /var/cache/apk/* /tmp/*
13+
614
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
715
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
816
COPY entrypoint /kool/entrypoint

7.3-prod/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ FROM wordpress:php7.3-fpm-alpine as wordpress
22
FROM kooldev/php:7.3-prod
33

44

5+
RUN echo "Building Deps" \
6+
# build-deps
7+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
8+
&& docker-php-ext-install -j$(nproc) mysqli \
9+
# cleanup
10+
&& apk del .build-deps \
11+
&& rm -rf /var/cache/apk/* /tmp/*
12+
513
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
614
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
715
COPY entrypoint /kool/entrypoint

7.3/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ FROM wordpress:php7.3-fpm-alpine as wordpress
22
FROM kooldev/php:7.3
33

44

5+
RUN echo "Building Deps" \
6+
# build-deps
7+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
8+
&& docker-php-ext-install -j$(nproc) mysqli \
9+
# cleanup
10+
&& apk del .build-deps \
11+
&& rm -rf /var/cache/apk/* /tmp/*
12+
513
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
614
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
715
COPY entrypoint /kool/entrypoint

7.4-nginx-prod/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ FROM kooldev/php:7.4-nginx-prod
33

44
ENV NGINX_ROOT=/app
55

6+
RUN echo "Building Deps" \
7+
# build-deps
8+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
9+
&& docker-php-ext-install -j$(nproc) mysqli \
10+
# cleanup
11+
&& apk del .build-deps \
12+
&& rm -rf /var/cache/apk/* /tmp/*
13+
614
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
715
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
816
COPY entrypoint /kool/entrypoint

7.4-nginx/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ FROM kooldev/php:7.4-nginx
33

44
ENV NGINX_ROOT=/app
55

6+
RUN echo "Building Deps" \
7+
# build-deps
8+
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
9+
&& docker-php-ext-install -j$(nproc) mysqli \
10+
# cleanup
11+
&& apk del .build-deps \
12+
&& rm -rf /var/cache/apk/* /tmp/*
13+
614
COPY --from=wordpress --chown=kool:kool /usr/src/wordpress /kool/wordpress
715
COPY --from=wordpress --chown=kool:kool /var/www/html/wp-content /app/wp-content
816
COPY entrypoint /kool/entrypoint

0 commit comments

Comments
 (0)