-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docker build after removal of vendored deps
- Loading branch information
1 parent
a85247f
commit c746960
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,20 @@ | |
# To run certstrap from the image (for example): | ||
# docker run --rm squareup/certstrap --version | ||
|
||
FROM golang:1.11.2-alpine as build | ||
FROM golang:1.13-alpine as build | ||
|
||
MAINTAINER Cedric Staub "[email protected]" | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
|
||
# Download dependencies | ||
RUN go mod download | ||
|
||
# Copy source | ||
COPY . /go/src/github.com/square/certstrap | ||
COPY . . | ||
|
||
# Build | ||
RUN go build -o /usr/bin/certstrap github.com/square/certstrap | ||
|
@@ -21,4 +29,4 @@ FROM alpine | |
|
||
COPY --from=build /usr/bin/certstrap /usr/bin/certstrap | ||
|
||
ENTRYPOINT ["/usr/bin/certstrap"] | ||
ENTRYPOINT ["/usr/bin/certstrap"] |