Skip to content

Commit

Permalink
fix: Reduce argoexec image size (argoproj#6197)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <[email protected]>
  • Loading branch information
alexec authored Jun 26, 2021
1 parent 097fe92 commit 92eb8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ RUN cat .dockerignore >> .gitignore
RUN git status --porcelain | cut -c4- | xargs git update-index --skip-worktree

RUN --mount=type=cache,target=/root/.cache/go-build make dist/argoexec
RUN setcap CAP_SYS_PTRACE,CAP_SYS_CHROOT+ei dist/argoexec

####################################################################################################

Expand Down Expand Up @@ -120,7 +121,6 @@ RUN --mount=type=cache,target=/root/.cache/go-build make dist/argo
FROM argoexec-base as argoexec

COPY --from=argoexec-build /go/src/github.com/argoproj/argo-workflows/dist/argoexec /usr/local/bin/
RUN setcap CAP_SYS_PTRACE,CAP_SYS_CHROOT+ei /usr/local/bin/argoexec
ENTRYPOINT [ "argoexec" ]

####################################################################################################
Expand Down

0 comments on commit 92eb8b7

Please sign in to comment.