From 09447c49818c3f517de9054cf70ea19e225a3dc1 Mon Sep 17 00:00:00 2001 From: Elias Kassell Date: Tue, 14 Feb 2023 17:09:32 +0000 Subject: [PATCH] Fix docker cmd for image (#1456) * Fix docker cmd for image * Replace with empty cmd instead of help --- cli/BUILD | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/cli/BUILD b/cli/BUILD index 38e9c66ee..c3d07a315 100644 --- a/cli/BUILD +++ b/cli/BUILD @@ -1,6 +1,10 @@ -package(default_visibility = ["//visibility:public"]) - load("//tools:ts_library.bzl", "ts_library") +load("//tools/common:copy.bzl", "copy_file") +load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push") +load("@io_bazel_rules_docker//docker/util:run.bzl", "container_run_and_commit") +load("//:version.bzl", "DF_VERSION") + +package(default_visibility = ["//visibility:public"]) ts_library( name = "cli", @@ -29,17 +33,12 @@ ts_library( ], ) -load("//tools/common:copy.bzl", "copy_file") - copy_file( name = "readme", src = "//:readme.md", out = "readme.md", ) -load("//:version.bzl", "DF_VERSION") -load("@io_bazel_rules_docker//docker/util:run.bzl", "container_run_and_commit") - container_run_and_commit( name = "image_with_dataform_cli", commands = [ @@ -51,11 +50,10 @@ container_run_and_commit( ], ) -load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push") - container_image( name = "image_with_dataform_entrypoint", base = ":image_with_dataform_cli_commit.tar", + cmd = [], entrypoint = ["dataform"], tags = [ "no-remote",