Debian Codegraph @

docker/Dockerfile

raw
1 FROM golang:1.21
2
3 MAINTAINER MichaƂ Czeraszkiewicz <[email protected]>
4
5 # Set the reset cache variable
6 # Read more here: http://czerasz.com/2014/11/13/docker-tip-and-tricks/#use-refreshedat-variable-for-better-cache-control
7 ENV REFRESHED_AT 2020-09-23
8
9 # Update the package list to be able to use required packages
10 RUN apt-get update
11
12 # Change the working directory
13 WORKDIR /go/src/mgmt
14
15 # Copy all the files to the working directory
16 COPY . /go/src/mgmt
17
18 # Install dependencies
19 RUN make deps
20
21 # Build the binary
22 RUN make build