FROM ubuntu:22.04 USER root RUN apt-get update -y && apt-get install -y --no-install-recommends make ca-certificates openssl gcc build-essential musl-dev git COPY files/go1.18.6.linux-amd64.tar.gz go1.18.6.linux-amd64.tar.gz RUN mkdir /tmp/go WORKDIR /tmp/go ENV GOPATH /tmp/go RUN chmod ugo+rwx /tmp/go WORKDIR / RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.6.linux-amd64.tar.gz ENV PATH $PATH:/usr/local/go/bin