@@ -5,9 +5,7 @@ RUN apk --no-cache add ca-certificates-bundle
5
5
# Second stage copies the binaries, configuration and also the
6
6
# certificates from the first stage.
7
7
8
- ARG TARGETPLATFORM
9
-
10
- FROM --platform=$TARGETPLATFORM alpine:3.20.3 AS release
8
+ FROM alpine:3.20.3 AS release
11
9
ARG TARGETOS
12
10
ARG TARGETARCH
13
11
ARG HOST_DIST=$TARGETOS-$TARGETARCH
@@ -21,18 +19,9 @@ ENTRYPOINT ["/usr/local/bin/synthetic-monitoring-agent"]
21
19
22
20
# Third stage copies the setup from the base agent and
23
21
# additionally installs Chromium to support browser checks.
24
- FROM --platform=$TARGETPLATFORM alpine:3.20.3 AS with-browser
25
-
26
- ARG TARGETARCH
22
+ FROM ghcr.io/grafana/chromium-swiftshader-alpine:131.0.6778.85-r0-3.20.3 AS with-browser
27
23
28
- # Renovate updates the pinned packages below.
29
- # The --repository arg is required for renovate to know which alpine repo it should look for updates in.
30
- # To keep the renovate regex simple, only keep one package installation per line.
31
- # Furthermore, we split this into two lines to allow for the arm64 and amd64 versions of chromium to be different, as
32
- # they have drifted in the past.
33
- RUN apk --no-cache add --repository community tini=0.19.0-r3
34
- RUN [[ "$TARGETARCH" != "amd64" ]] || apk --no-cache add --repository community --arch x86_64 chromium-swiftshader=131.0.6778.69-r0
35
- RUN [[ "$TARGETARCH" != "arm64" ]] || apk --no-cache add --repository community --arch aarch64 chromium-swiftshader=131.0.6778.69-r0
24
+ RUN apk --no-cache add --repository community tini
36
25
37
26
COPY --from=release /usr/local/bin/synthetic-monitoring-agent /usr/local/bin/synthetic-monitoring-agent
38
27
COPY --from=release /usr/local/bin/sm-k6 /usr/local/bin/sm-k6
0 commit comments