FROM golang:1.16 MAINTAINER MichaƂ Czeraszkiewicz # Set the reset cache variable # Read more here: http://czerasz.com/2014/11/13/docker-tip-and-tricks/#use-refreshedat-variable-for-better-cache-control ENV REFRESHED_AT 2020-09-23 # Update the package list to be able to use required packages RUN apt-get update # Change the working directory WORKDIR /go/src/mgmt # Copy all the files to the working directory COPY . /go/src/mgmt # Install dependencies RUN make deps # Build the binary RUN make build