Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker build after removal of vendored deps #106

Merged
merged 1 commit into from
Apr 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]