FROM ubuntu:18.04 RUN apt-get update && apt-get install -y \ nano \ sudo \ wget ENV GOROOT="/usr/local/go" ENV GOPATH="/root/go" ENV PATH="$PATH:$GOPATH/bin:$GOROOT/bin" RUN mkdir /root/go/src/test RUN wget --quiet https://storage.googleapis.com/golang/go1.11.5.linux-amd64.tar.gz \ && tar -xf go1.11.5.linux-amd64.tar.gz \ && mv go /usr/loca RUN wget --quiet https://github.com/golang/dep/releases/download/v0.5.1/dep-linux-amd64 \ && mv dep-linux-amd64 /usr/local/bin/dep && chmod +x /usr/local/bin/dep CMD ["/bin/bash"]