diff --git a/Dockerfile b/Dockerfile index 8faf9c191cdc..c6b49a7c0d2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,6 +71,8 @@ ARG GIT_TREE_STATE RUN mkdir -p ui/dist COPY --from=argo-ui ui/dist/app ui/dist/app +# update timestamp so that `make` doesn't try to rebuild this -- it was already built in the previous stage +RUN touch ui/dist/app/index.html RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build STATIC_FILES=true make dist/argo GIT_COMMIT=${GIT_COMMIT} GIT_TAG=${GIT_TAG} GIT_TREE_STATE=${GIT_TREE_STATE}