Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
fix: remove apt cache layer (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller171 authored and nickatsegment committed Apr 1, 2019
1 parent 18d90c4 commit 6b8d3b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from golang:1.11 as build
FROM golang:1.11 as build

ENV SRC github.com/segmentio/aws-okta
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 \
Expand All @@ -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"]

0 comments on commit 6b8d3b9

Please sign in to comment.