Skip to content

Commit

Permalink
Merge pull request #6 from marquiz/devel/dockerfile
Browse files Browse the repository at this point in the history
Dockerfile: fetch build dependencies in a separate layer
  • Loading branch information
k8s-ci-robot authored Aug 12, 2020
2 parents 43818dc + fc8957a commit 9d4b6e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Build the operator
FROM registry.access.redhat.com/ubi8/go-toolset AS builder
WORKDIR /go/src/github.com/kubernetes-sigs/node-feature-discovery-operator
COPY . .

# Fetch/cache dependencies
COPY go.mod go.sum ./
RUN go mod download

# do the actual build
COPY . .
RUN make build

# Create production image for running the operator
Expand Down

0 comments on commit 9d4b6e0

Please sign in to comment.