Skip to content

Commit cda33cf

Browse files
authored
SECENGSP-6401: Include LICENSE file in containers (#36)
Resolves: #35 Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent be71e02 commit cda33cf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ COPY main.go main.go
1515
COPY api/ api/
1616
COPY controllers/ controllers/
1717

18+
# Copy license file
19+
COPY LICENSE /licenses/
20+
1821
# Build
1922
RUN echo "GOARCH=${goarch}"
2023
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${goarch} go build -a -o manager main.go

bundle.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
1818
COPY bundle/manifests /manifests/
1919
COPY bundle/metadata /metadata/
2020
COPY bundle/tests/scorecard /tests/scorecard/
21+
22+
# Copy LICENSE to /licenses directory
23+
COPY LICENSE /licenses/

0 commit comments

Comments
 (0)