-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Billy Zha <[email protected]>
- Loading branch information
Showing
7 changed files
with
45 additions
and
26 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
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
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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM docker.io/library/golang:1.18.1-alpine as builder | ||
ARG TARGETPLATFORM | ||
RUN apk add git make | ||
ENV ORASPKG /oras | ||
ADD . ${ORASPKG} | ||
WORKDIR ${ORASPKG} | ||
RUN make build-linux | ||
RUN mv ${ORASPKG}/bin/linux/amd64/oras /go/bin/oras | ||
RUN make "build-$(echo $TARGETPLATFORM | tr / -)" | ||
RUN mv ${ORASPKG}/bin/${TARGETPLATFORM}/oras /go/bin/oras | ||
|
||
FROM docker.io/library/alpine:3.13.5 | ||
LABEL maintainer="[email protected]" | ||
FROM docker.io/library/alpine:3.15.4 | ||
RUN apk --update add ca-certificates | ||
COPY --from=builder /go/bin/oras /bin/oras | ||
RUN mkdir /workspace | ||
|
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