blob: 8a617862d0b8b761040bf56fd1e9fabfe580e304 [file] [log] [blame]
giolekva1ef98852020-12-14 20:32:09 +04001load("//:bazel_tools/docker.bzl", "docker_image")
giolekva02f73542020-12-13 14:52:56 +04002
giolekva8f77f232020-12-13 14:16:40 +04003# TODO(lekva): figure out how to build py_binary with pip dependencies and
giolekva1ef98852020-12-14 20:32:09 +04004# migrate off docker_image rule
5docker_image(
giolekva02f73542020-12-13 14:52:56 +04006 name = "push_to_dev",
giolekva1ef98852020-12-14 20:32:09 +04007 registry = "localhost:30500",
8 image = "giolekva/face-detector",
9 tag = "latest",
10 dockerfile = "Dockerfile",
11 srcs = glob(["*.py"]) + [
giolekva8f77f232020-12-13 14:16:40 +040012 "haarcascade_frontalface_default.xml",
13 ],
giolekva02f73542020-12-13 14:52:56 +040014)
giolekvac2e8fbf2020-12-14 20:46:53 +040015
16pkg_tar(
17 name = "chart",
18 srcs = glob(["chart/**"]),
19 extension = "tar.gz",
20 strip_prefix = "./chart",
21)