FROM golang:latest RUN mkdir /app RUN mkdir -p /app WORKDIR /app RUN go get -u RUN go build -o main . CMD ["/app/main"] ADD . /app RUN go build ./main.go CMD ["./main"]