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 1 commit
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
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
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 \
git

RUN CGO_ENABLED=1 go build -o aws-okta -ldflags="-X main.version=$VERSION" ${SRC}/cmd

##################################################
smiller171 marked this conversation as resolved.
Show resolved Hide resolved

FROM scratch
COPY --from=build /build/aws-okta /
ENTRYPOINT ["/aws-okta"]