dockerfile caching
This commit is contained in:
parent
3287c5ff9e
commit
e9d75785c5
@ -6,6 +6,10 @@ RUN apk add --update git build-base linux-headers
|
|||||||
# Set working directory for the build
|
# Set working directory for the build
|
||||||
WORKDIR /go/src/github.com/cerc-io/laconicd
|
WORKDIR /go/src/github.com/cerc-io/laconicd
|
||||||
|
|
||||||
|
# Cache Go modules
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
# Add source files
|
# Add source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user