diff --git a/docker/Dockerfile-workers b/docker/Dockerfile-workers index 0de857603..02562ad0f 100644 --- a/docker/Dockerfile-workers +++ b/docker/Dockerfile-workers @@ -27,6 +27,18 @@ RUN python3.11 -m venv venv && \ venv/bin/pip install . --no-deps --no-cache-dir && \ rm -rf .git +# Install an older version of Go fixed at 1.20 (along with the base >=1.21): +# - install Go's official shim +# - let the shim download the actual Go SDK (the download forces the output parent dir to $HOME) +# - move the SDK to a host local install system-wide location +# - remove the shim as it forces and expects the SDK to be used from $HOME +# - clean any build artifacts Go creates as part of the process. +RUN go install 'golang.org/dl/go1.20@latest' && \ + "$HOME/go/bin/go1.20" download && \ + mkdir /usr/local/go && \ + mv "$HOME/sdk/go1.20" /usr/local/go && \ + rm -rf "$HOME/go" "$HOME/.cache/go-build/" + # Use the system CA bundle for the requests library ENV REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/extracted/pem/directory-hash/ca-bundle.crt # Use the system CA bundle for native SSL calls from celery (python)