From 6b8d3b9e842b8301d3edeeb33ee84aba044af94b Mon Sep 17 00:00:00 2001 From: Scott Miller Date: Mon, 1 Apr 2019 13:29:00 -0400 Subject: [PATCH] fix: remove apt cache layer (#136) --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bff518e3..b6a67c79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -from golang:1.11 as build +FROM golang:1.11 as build ENV SRC github.com/segmentio/aws-okta ARG VERSION @@ -6,8 +6,7 @@ ARG VERSION WORKDIR /build COPY . /go/src/${SRC} -RUN apt-get update -RUN apt-get install --no-install-recommends -y \ +RUN apt-get update && apt-get install --no-install-recommends -y \ libusb-1.0-0-dev \ ca-certificates \ build-essential \ @@ -18,4 +17,3 @@ RUN CGO_ENABLED=1 go build -o aws-okta -ldflags="-X main.version=$VERSION" ${SRC FROM scratch COPY --from=build /build/aws-okta / ENTRYPOINT ["/aws-okta"] -