Created
August 16, 2019 05:29
-
-
Save alicek106/2f787d1b9916728bc4b9da405f9427ae to your computer and use it in GitHub Desktop.
Dockerfile for Golang Practice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt update && apt install wget git build-essential vim -y | |
RUN wget https://dl.google.com/go/go1.12.linux-amd64.tar.gz && \ | |
tar -xvf go1.12.linux-amd64.tar.gz && \ | |
mv go /usr/local | |
ENV GOROOT=/usr/local/go | |
ENV GOPATH=/root/go | |
ENV PATH="$GOPATH/bin:$GOROOT/bin:${PATH}" | |
RUN mkdir /root/go | |
WORKDIR /root/go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment