From 0a7e32bd17fb3f4aae8fdea427283cda49fe002f Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Thu, 15 Oct 2020 17:19:21 -0700 Subject: Add easier-to-use docker_image target. PiperOrigin-RevId: 337415009 --- website/BUILD | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'website/BUILD') diff --git a/website/BUILD b/website/BUILD index 6d92d9103..f3642b903 100644 --- a/website/BUILD +++ b/website/BUILD @@ -1,17 +1,15 @@ load("//tools:defs.bzl", "bzl_library", "pkg_tar") load("//website:defs.bzl", "doc", "docs") +load("//images:defs.bzl", "docker_image") package(licenses = ["notice"]) -# website is the full container image. Note that this actually just collects -# other dependendcies and runs Docker locally to import and tag the image. -sh_binary( +docker_image( name = "website", - srcs = ["import.sh"], data = [":files"], - tags = [ - "local", - "manual", + statements = [ + "EXPOSE 8080/tcp", + 'ENTRYPOINT ["/server"]', ], ) -- cgit v1.2.3