This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first running container from alpine with multi-stage build
Signed-off-by: Mohamed Mohamed <mmohamed@us.ibm.com>
- Loading branch information
Showing
12 changed files
with
482 additions
and
484 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,15 @@ | ||
FROM golang:1.7.3 | ||
WORKDIR /go/src/github.com/IBM/ubiquity/ | ||
COPY . . | ||
RUN go get -v github.com/Masterminds/glide | ||
RUN glide up | ||
RUN CGO_ENABLED=1 GOOS=linux go build -tags netgo -v -a --ldflags '-w -linkmode external -extldflags "-static"' -installsuffix cgo -o ubiquity main.go | ||
|
||
|
||
FROM alpine:latest | ||
RUN apk --no-cache add ca-certificates | ||
WORKDIR /root/ | ||
RUN mkdir -p /tmp/ubiquity | ||
COPY --from=0 /go/src/github.com/IBM/ubiquity/ubiquity . | ||
COPY --from=0 /go/src/github.com/IBM/ubiquity/ubiquity-server.conf . | ||
CMD ["./ubiquity"] |
Empty file.
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
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
Oops, something went wrong.