github.com/rpdict/ponzu@v0.10.1-0.20190226054626-477f29d6bf5e/Dockerfile (about)

     1  
     2  # Base our image on an official, minimal image of our preferred golang
     3  FROM golang:1.9
     4  
     5  # Note: The default golang docker image, already has the GOPATH env variable set.
     6  # GOPATH is located at /go
     7  ENV GO_SRC $GOPATH/src
     8  ENV PONZU_GITHUB github.com/rpdict/ponzu
     9  ENV PONZU_ROOT $GO_SRC/$PONZU_GITHUB
    10  ENV http_proxy http://192.168.1.12:8800
    11  ENV https_proxy https://192.168.1.12:8800
    12  
    13  # Consider updating package in the future. For instance ca-certificates etc.
    14  # RUN apt-get update -qq && apt-get install -y build-essential
    15  
    16  # Make the ponzu root directory
    17  RUN mkdir -p $PONZU_ROOT
    18  
    19  # All commands will be run inside of ponzu root
    20  WORKDIR $PONZU_ROOT
    21  
    22  # Copy the ponzu source into ponzu root.
    23  COPY . .
    24  
    25  # the following runs the code inside of the $GO_SRC/$PONZU_GITHUB directory
    26  RUN go get -u $PONZU_GITHUB...
    27  
    28  # Define the scripts we want run once the container boots
    29  # CMD [ "" ]