Skip to content

Commit

Permalink
fix(ci): add non-root user to Dockerfile (argoproj#4305)
Browse files Browse the repository at this point in the history
  • Loading branch information
process0 authored Oct 16, 2020
1 parent 1cc68d8 commit 26f39b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ ENTRYPOINT [ "argoexec" ]
# workflow-controller
####################################################################################################
FROM scratch as workflow-controller
USER 8737
# Add timezone data
COPY --from=argo-build /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=argo-build /go/src/github.com/argoproj/argo/dist/workflow-controller-linux-* /bin/workflow-controller
Expand All @@ -133,6 +134,7 @@ ENTRYPOINT [ "workflow-controller" ]
# argocli
####################################################################################################
FROM scratch as argocli
USER 8737
COPY --from=argoexec-base /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts
COPY --from=argoexec-base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=argo-build /go/src/github.com/argoproj/argo/argo-server.crt argo-server.crt
Expand Down

0 comments on commit 26f39b6

Please sign in to comment.