This repository has been archived by the owner on May 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This relates to a question brought up in #109. I went ahead and added a Dockerfile for executing the build in Ubuntu as a demonstration of this need for a dependency.
- Loading branch information
1 parent
cb068e5
commit a5f7c68
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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 \ | ||
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 | ||
|
||
FROM scratch | ||
COPY --from=build /build/aws-okta / | ||
ENTRYPOINT ["/aws-okta"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters