foundation/Dockerfile

27 lines
514 B
Docker

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
COPY files/pkgmod.tar.gz /tmp/go/pkgmod.tar.gz
WORKDIR /tmp/go
RUN tar -xvzf pkgmod.tar.gz
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