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

remove apt cache layer #136

Merged
merged 2 commits into from
Apr 1, 2019
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
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"]