distribution/project/dev-image/Dockerfile
Wang Yan 70db3a46d9
bump up golang version
upgrade go version to v1.18.8

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-05-09 10:59:43 +02:00

20 lines
624 B
Docker

FROM ubuntu:14.04
ENV GOLANG_VERSION 1.4rc1
ENV GOPATH /var/cache/drone
ENV GOROOT /usr/local/go
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin
ENV LANG C
ENV LC_ALL C
RUN apt-get update && apt-get install -y \
wget ca-certificates git mercurial bzr \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz --quiet && \
tar -C /usr/local -xzf go$GOLANG_VERSION.linux-amd64.tar.gz && \
rm go${GOLANG_VERSION}.linux-amd64.tar.gz
RUN go install github.com/axw/gocov/gocov@latest github.com/mattn/goveralls@latest github.com/golang/lint/golint@latest