Skip to content

Commit

Permalink
fix k8s agent dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanayotov committed Nov 20, 2019
1 parent b3f167c commit b0d0560
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile-k8s-agent
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
FROM golang:1.12.7-alpine3.10 AS builder

# We need so that dep can fetch it's dependencies
# RUN apk --no-cache add git
# RUN go get github.com/golang/dep/cmd/dep
RUN apk --no-cache add git
RUN go get github.com/golang/dep/cmd/dep

# Directory in workspace
WORKDIR "/go/src/github.com/Peripli/service-manager"

# Copy dep files only and ensure dependencies are satisfied
# COPY Gopkg.lock Gopkg.toml ./
# RUN dep ensure -vendor-only -v
COPY Gopkg.lock Gopkg.toml ./
RUN dep ensure --vendor-only -v

# Copy and build source code
COPY . ./
Expand Down

0 comments on commit b0d0560

Please sign in to comment.