-
Notifications
You must be signed in to change notification settings - Fork 6
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 #64 from interlynk-io/fix/docker-file
Review fixes
- Loading branch information
Showing
6 changed files
with
93,023 additions
and
27 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release| Build GHCR image | ||
name: Release | Build GHCR image | ||
on: | ||
release: | ||
types: [published] | ||
|
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,4 +1,4 @@ | ||
name: Release| Build Binary | ||
name: Release | Build Binary | ||
|
||
on: | ||
push: | ||
|
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,4 +1,4 @@ | ||
name: Dev| Build SBOM | ||
name: Dev | Build SBOM | ||
|
||
on: | ||
push: | ||
|
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,19 +1,29 @@ | ||
FROM golang:1.20-alpine AS builder | ||
FROM golang:1.22.2-alpine AS builder | ||
LABEL org.opencontainers.image.source="https://github.com/interlynk-io/sbomasm" | ||
|
||
RUN apk add --no-cache make git | ||
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/sbomasm" | ||
LABEL org.opencontainers.image.description="SBOM Assembler - Assembler for SBOMs" | ||
LABEL org.opencontainers.image.description="Assembler for your sboms" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
COPY --from=builder /app/build/sbomasm /app/sbomasm | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /bin/sh /bin/grep /bin/busybox /bin/touch /bin/chmod /bin/mkdir /bin/date /bin/cat /bin/ | ||
COPY --from=builder /etc/ssl/certs /etc/ssl/certs | ||
COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1 | ||
COPY --from=builder /tmp /tmp | ||
COPY --from=builder /usr/bin /usr/bin | ||
|
||
# Copy our static executable | ||
COPY --from=builder /app/build/sbomasm /app/sbomqs | ||
|
||
# Disable version check | ||
ENV INTERLYNK_DISABLE_VERSION_CHECK=true | ||
|
||
ENTRYPOINT [ "/app/sbomasm"] | ||
ENTRYPOINT [ "/app/sbomasm" ] |
Oops, something went wrong.