File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22FROM ubuntu:20.04 AS playwright-deps
33ENV PLAYWRIGHT_BROWSERS_PATH=/opt/browsers
44# ENV PLAYWRIGHT_DRIVER_PATH=/opt/
5+ ARG TARGETARCH
6+
57RUN export PATH=$PATH:/usr/local/go/bin:/root/go/bin \
68 && apt-get update \
79 && apt-get install -y --no-install-recommends ca-certificates curl wget \
8- && wget -q https://go.dev/dl/go1.26.2.linux-amd64.tar.gz \
9- && tar -C /usr/local -xzf go1.26.2.linux-amd64.tar.gz \
10- && rm go1.26.2.linux-amd64.tar.gz \
10+ # Architektur-Logik für den Go-Download
11+ && if [ "$TARGETARCH" = "arm64" ]; then \
12+ GO_ARCH="arm64" ; \
13+ else \
14+ GO_ARCH="amd64" ; \
15+ fi \
16+ && wget -q "https://go.dev/dl/go1.26.2.linux-${GO_ARCH}.tar.gz" \
17+ && tar -C /usr/local -xzf "go1.26.2.linux-${GO_ARCH}.tar.gz" \
18+ && rm "go1.26.2.linux-${GO_ARCH}.tar.gz" \
19+ # ... (Rest des ursprünglichen RUN-Befehls: Nodejs, Playwright, etc.)
1120 && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
1221 && apt-get install -y --no-install-recommends nodejs \
1322 && apt-get clean \
You can’t perform that action at this time.
0 commit comments