Skip to content

Commit

Permalink
Fix Build
Browse files Browse the repository at this point in the history
  • Loading branch information
dbpolito committed Oct 5, 2023
1 parent 1681431 commit a5ce93d
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 15 deletions.
8 changes: 6 additions & 2 deletions 8.0-nginx-swoole-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.0-nginx-prod

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.0-nginx-swoole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.0-nginx

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.1-nginx-swoole-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.1-nginx-prod

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.1-nginx-swoole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.1-nginx

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.2-nginx-swoole-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.2-nginx-prod

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.2-nginx-swoole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.2-nginx

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
4 changes: 3 additions & 1 deletion kool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ scripts:
- kool run template
- docker build --pull -t kooldev/php:8.0-nginx-swoole 8.0-nginx-swoole
- docker build --pull -t kooldev/php:8.0-nginx-swoole-prod 8.0-nginx-swoole-prod
- docker build --pull -t kooldev/php:8.1-nginx-swoole 8.1-nginx-swoole
- docker build --pull -t kooldev/php:8.2-nginx-swoole 8.1-nginx-swoole
- docker build --pull -t kooldev/php:8.1-nginx-swoole-prod 8.1-nginx-swoole-prod
- docker build --pull -t kooldev/php:8.2-nginx-swoole 8.2-nginx-swoole
- docker build --pull -t kooldev/php:8.2-nginx-swoole-prod 8.2-nginx-swoole-prod
8 changes: 6 additions & 2 deletions template/Dockerfile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*

0 comments on commit a5ce93d

Please sign in to comment.