Skip to content

Commit

Permalink
Fix docker cmd for image (#1456)
Browse files Browse the repository at this point in the history
* Fix docker cmd for image

* Replace with empty cmd instead of help
  • Loading branch information
Ekrekr authored Feb 14, 2023
1 parent 307ea87 commit 09447c4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions cli/BUILD
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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 = [
Expand All @@ -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",
Expand Down

0 comments on commit 09447c4

Please sign in to comment.