Skip to content

Commit

Permalink
Fix docker build after removal of vendored deps
Browse files Browse the repository at this point in the history
I believe the docker build broke after merging #93. This change should
fix #105
  • Loading branch information
mbyczkowski committed Apr 12, 2020
1 parent a85247f commit c746960
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,4 +29,4 @@ FROM alpine

COPY --from=build /usr/bin/certstrap /usr/bin/certstrap

ENTRYPOINT ["/usr/bin/certstrap"]
ENTRYPOINT ["/usr/bin/certstrap"]

0 comments on commit c746960

Please sign in to comment.