github.com/bosssauce/ponzu@v0.11.1-0.20200102001432-9bc41b703131/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/ponzu-cms/ponzu
     9  ENV PONZU_ROOT $GO_SRC/$PONZU_GITHUB
    10  
    11  # Consider updating package in the future. For instance ca-certificates etc.
    12  # RUN apt-get update -qq && apt-get install -y build-essential
    13  
    14  # Make the ponzu root directory
    15  RUN mkdir -p $PONZU_ROOT
    16  
    17  # All commands will be run inside of ponzu root
    18  WORKDIR $PONZU_ROOT
    19  
    20  # Copy the ponzu source into ponzu root.
    21  COPY . .
    22  
    23  # the following runs the code inside of the $GO_SRC/$PONZU_GITHUB directory
    24  RUN go get -u $PONZU_GITHUB...
    25  
    26  # Define the scripts we want run once the container boots
    27  # CMD [ "" ]