go-ethereum/build/bot/Dockerfile.linux

16 lines
481 B
Docker

FROM golang:1.19.1
# Install build tools.
RUN apt-get update
RUN apt-get -yq --no-install-suggests --no-install-recommends install gcc-multilib g++-multilib
# The repo checkout is mounted to /source.
WORKDIR /source
# Prevent git error because the owner of /source does not exist in the Docker container.
RUN git config --global --add safe.directory /source
# Configure Go tool cache locations
ENV GOPATH=/cache/go
ENV GOCACHE=/cache/go/cache
ENV GOMODCACHE=/cache/go/modcache