File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 11# syntax = docker/dockerfile:1.4
22ARG PHP_VERSION
33ARG BREF_VERSION
4+ ARG TIDEWAYS_VERSION=5.18.6
5+
6+ FROM ghcr.io/tideways/php:$TIDEWAYS_VERSION AS tideways
47FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
58
6- ARG TIDEWAYS_VERSION=5.18.6
79# Versions: https://tideways.com/profiler/downloads
810# Docs: https://app.tideways.io/o/Bref/Bref-Tideways/installation
911
10- RUN <<'END' bash -e
11- mkdir -p /tmp/tideways
12- cd /tmp/tideways
13- export version=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;" )
14- curl -sSL "https://s3-eu-west-1.amazonaws.com/tideways/extension/${TIDEWAYS_VERSION}/tideways-php-${TIDEWAYS_VERSION}-x86_64.tar.gz" | tar -xz --strip-components=1 -C /tmp/tideways
15- cp /tmp/tideways/tideways-php-${version}.so /tmp/tideways.so
16- echo 'extension=tideways.so' > /tmp/ext-tideways.ini
17- END
18-
12+ COPY --from=tideways /tideways/ /tideways/
13+ RUN set -ex; \
14+ cp "$(php /tideways/get-ext-path.php)" /tmp/tideways.so; \
15+ echo "extension=tideways.so" > /tmp/ext-tideways.ini;
1916
2017# Build the final image with just the files we need
2118FROM scratch
You can’t perform that action at this time.
0 commit comments