Skip to content

Instantly share code, notes, and snippets.

@alicek106
Created August 16, 2019 05:29
Show Gist options
  • Save alicek106/2f787d1b9916728bc4b9da405f9427ae to your computer and use it in GitHub Desktop.
Save alicek106/2f787d1b9916728bc4b9da405f9427ae to your computer and use it in GitHub Desktop.
Dockerfile for Golang Practice
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