Skip to content

Commit

Permalink
Merge pull request #239 from interlynk-io/238-container-image-ghcrioi…
Browse files Browse the repository at this point in the history
…nterlynk-iosbomqs-doesnt-run-in-gitlab-cicd-job

Add bash and grep to be compatible with gitlab ci/cd
  • Loading branch information
riteshnoronha authored May 20, 2024
2 parents 0c9e5a6 + 0a9cda9 commit e330209
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.22.2-alpine AS builder
LABEL org.opencontainers.image.source="https://github.com/interlynk-io/sbomqs"

RUN apk add --no-cache make git
RUN apk add --no-cache make git bash grep
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
Expand All @@ -14,8 +14,12 @@ LABEL org.opencontainers.image.source="https://github.com/interlynk-io/sbomqs"
LABEL org.opencontainers.image.description="Quality metrics for your sboms"
LABEL org.opencontainers.image.licenses=Apache-2.0

COPY --from=builder /bin/sh /bin/grep /bin/busybox /bin/touch /bin/chmod /bin/mkdir /bin/date /bin/

# Copy our static executable
COPY --from=builder /app/build/sbomqs /app/sbomqs

# Disable version check
ENV INTERLYNK_DISABLE_VERSION_CHECK=true

ENTRYPOINT [ "/app/sbomqs" ]

0 comments on commit e330209

Please sign in to comment.