Skip to content

Commit 9287fa3

Browse files
authored
fix: correct licence and user init (#461)
Signed-off-by: SequeI <[email protected]>
1 parent 5fc9231 commit 9287fa3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Dockerfile.clients.rh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ COPY --from=trillian-updatetree /usr/local/bin/updatetree-windows-amd64.exe.gz /
8989
COPY --from=tuf-tool /usr/bin/tuftool /var/www/html/clients/linux/tuftool-amd64
9090
RUN gzip /var/www/html/clients/linux/tuftool-amd64
9191

92+
COPY LICENSE /licenses/license.txt
93+
9294
LABEL \
9395
com.redhat.component="trusted-artifact-signer-serve-cli-container" \
9496
name="rhtas/client-server-rhel9" \

Dockerfile.cosign.rh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ COPY --from=build-env /cosign/cosign-linux-ppc64le.gz /usr/local/bin/cosign-linu
4444
COPY --from=build-env /cosign/cosign-linux-s390x.gz /usr/local/bin/cosign-linux-s390x.gz
4545
COPY --from=build-env /cosign/cosign-linux-amd64.gz /usr/local/bin/cosign-linux-amd64.gz
4646
COPY --from=build-env /cosign/cosign /usr/local/bin/cosign
47+
COPY LICENSE /licenses/license.txt
4748

4849
RUN chown root:0 /usr/local/bin/cosign && \
4950
chmod g+wx /usr/local/bin/cosign && \
@@ -61,5 +62,7 @@ RUN chgrp -R 0 /${HOME} && chmod -R g=u /${HOME}
6162

6263
WORKDIR ${HOME}
6364

65+
USER 65532:65532
66+
6467
# Makes sure the container stays running
6568
CMD ["tail", "-f", "/dev/null"]

0 commit comments

Comments
 (0)