File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
1
# syntax = docker/dockerfile:1.4
2
2
ARG PHP_VERSION
3
3
ARG BREF_VERSION
4
+ ARG TIDEWAYS_VERSION=5.18.6
5
+
6
+ FROM ghcr.io/tideways/php:$TIDEWAYS_VERSION AS tideways
4
7
FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
5
8
6
- ARG TIDEWAYS_VERSION=5.18.6
7
9
# Versions: https://tideways.com/profiler/downloads
8
10
# Docs: https://app.tideways.io/o/Bref/Bref-Tideways/installation
9
11
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;
19
16
20
17
# Build the final image with just the files we need
21
18
FROM scratch
You can’t perform that action at this time.
0 commit comments