11#syntax=docker/dockerfile-upstream:1
22# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint)
3- FROM ubuntu:24.04
3+ FROM ubuntu:24.04 as base1
44LABEL authors="Julien Neuhart <
[email protected] >, David Négrier <
[email protected] >"
55SHELL ["/bin/bash", "-o", "pipefail", "-c"]
6+ FROM base1 as base
67
78# Fixes some weird terminal issues such as broken clear / CTRL+L
89#ENV TERM=linux
@@ -13,7 +14,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1314ARG PHP_VERSION
1415ARG TARGETOS
1516ARG TARGETARCH
16- ARG BLACKFIRE_VERSION=1
17+ ARG BLACKFIRE_VERSION=2
1718ONBUILD ARG TARGETOS=${TARGETOS}
1819ONBUILD ARG TARGETARCH=${TARGETARCH}
1920ONBUILD ARG BLACKFIRE_VERSION=${BLACKFIRE_VERSION}
@@ -32,26 +33,32 @@ ENV PHP_VERSION=${PHP_VERSION}
3233
3334# Install php an other packages
3435RUN apt update \
35- && apt install -y software-properties-common \
36+ && apt upgrade -y \
37+ && apt install -y software-properties-common --no-install-recommends \
3638 && add-apt-repository ppa:ondrej/php \
39+ && apt remove --purge -y software-properties-common \
40+ && apt autoremove -y \
3741 && apt install -y --no-install-recommends \
38- git \
3942 nano \
4043 sudo \
44+ git \
4145 iproute2 \
42- openssh-client \
4346 procps \
47+ curl \
4448 unzip \
4549 ca-certificates \
46- curl \
50+ openssh-client \
51+ && apt clean \
52+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
53+ RUN apt update \
54+ && apt install -y --no-install-recommends \
4755 php${PHP_VERSION}-cli \
4856 php${PHP_VERSION}-curl \
4957 php${PHP_VERSION}-mbstring \
5058 php${PHP_VERSION}-opcache \
5159 php${PHP_VERSION}-readline \
5260 php${PHP_VERSION}-xml \
5361 php${PHP_VERSION}-zip \
54- && if [[ "${PHP_VERSION}" =~ ^7 ]]; then apt install -y --no-install-recommends php${PHP_VERSION}-json; fi \
5562 && apt clean \
5663 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
5764
@@ -403,3 +410,6 @@ ONBUILD RUN if [ -n "$NODE_VERSION" ]; then \
403410 sudo apt clean && \
404411 sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*; \
405412 fi;
413+
414+ FROM base as step4
415+ FROM step4 as final
0 commit comments