title: Dockerizing go application from a git repo
body: <p>I have a main.go application in git , i need to create docker file and to run application in kubernetes cluster. </p>
  
  <p>I created the docker file but i am not sure it is correct,
  how can  add the main.go from git to the docker?</p>
  
  <p>Assume that main.go is in A repo in git:</p>
  
  <p>I created a docker file in same A repo (this is my docker file):</p>
  
  <pre><code>#  base image for Go
  FROM golang:latest
  
  RUN mkdir /app
  
  
  ADD . /app
  
  # Set the Current Working Directory inside the container
  
  WORKDIR /app
  
  
  # Build the Go app
  RUN go get github.com/gorilla/mux
  RUN go build -o app/main
  
  
  
  #COPY / ./
  
  # Command to run the executable
  
  CMD ["/app/main"]
  </code></pre>
  
  <p>I created image --> How can i know it is correct what i am doing?
  please help! </p>