-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from interlynk-io/fix/dockerize
[ISSUE-35] Dockerize sbomex release
- Loading branch information
Showing
3 changed files
with
40 additions
and
4 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,19 @@ | ||
FROM golang:1.20-alpine AS builder | ||
LABEL org.opencontainers.image.source="https://github.com/interlynk-io/sbomex" | ||
|
||
RUN apk add --no-cache make | ||
WORKDIR /app | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY . . | ||
RUN make ; make build | ||
|
||
FROM scratch | ||
LABEL org.opencontainers.image.source="https://github.com/interlynk-io/sbomex" | ||
LABEL org.opencontainers.image.description="SBOM Explorer - Find and pull public SBOMs" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
COPY --from=builder /app/build/sbomex /app/sbomex | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
|
||
ENTRYPOINT [ "/app/sbomex"] |
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