Skip to content

Commit 0278a46

Browse files
feat: add php 8 build Dockerfile
1 parent 9a509c4 commit 0278a46

File tree

6 files changed

+6
-11
lines changed

6 files changed

+6
-11
lines changed

.github/workflows/php8-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- name: Build PHP-FPM Image and Push
2929
uses: docker/build-push-action@v5
3030
with:
31-
context: php/7
32-
file: php/7/Dockerfile
31+
context: php/8
32+
file: php/8/Dockerfile
3333
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
3434
push: true
3535
build-args:

php/7/Dockerfile renamed to php/8/Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
ARG PHP_VERSION
22
FROM php:${PHP_VERSION}-fpm
33

4-
COPY ./data/supervisor-4.2.5.tar.gz /tmp/
54
COPY ./data/php-fpm.ini /etc/supervisor.d/php-fpm.ini
65
COPY ./data/supervisord.conf /etc/supervisord.conf
76
COPY ./data/install-php-extensions /usr/local/bin/
87

98
RUN apt-get update && \
10-
apt-get install -y python3 python3-pip git wget&& \
11-
rm -rf /var/lib/apt/lists/*
12-
13-
RUN cd /tmp && \
14-
tar -xzvf supervisor-4.2.5.tar.gz && \
15-
cd supervisor-4.2.5 && \
16-
python3 setup.py install && \
17-
mkdir -p /var/log/supervisor /etc/supervisor/conf.d
9+
apt-get install -y --no-install-recommends supervisor && \
10+
mkdir -p /var/log/supervisor /etc/supervisor/conf.d && \
11+
apt-get clean && \
12+
rm -rf /var/lib/apt/lists/*
1813

1914
RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
2015
&& php /tmp/composer-setup.php --install-dir=/tmp \

0 commit comments

Comments
 (0)