Skip to content

Commit

Permalink
SECENGSP-6401: Include LICENSE file in containers
Browse files Browse the repository at this point in the history
Resolves: #35

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
  • Loading branch information
sarroutbi committed Oct 8, 2024
1 parent be71e02 commit def0729
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ COPY main.go main.go
COPY api/ api/
COPY controllers/ controllers/

# Copy license file
COPY LICENSE /licenses/

# Build
RUN echo "GOARCH=${goarch}"
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${goarch} go build -a -o manager main.go
Expand Down
3 changes: 3 additions & 0 deletions bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard/

# Copy LICENSE to /licenses directory
COPY LICENSE /licenses/

0 comments on commit def0729

Please sign in to comment.