diff options
author | Adin Scannell <ascannell@google.com> | 2020-10-15 17:19:21 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-15 17:21:24 -0700 |
commit | 0a7e32bd17fb3f4aae8fdea427283cda49fe002f (patch) | |
tree | ab9367eb9cd6c226ca4857b8217de21552c294ee /website/BUILD | |
parent | 0d54b41e550b452bb990cca55f642169502b82f2 (diff) |
Add easier-to-use docker_image target.
PiperOrigin-RevId: 337415009
Diffstat (limited to 'website/BUILD')
-rw-r--r-- | website/BUILD | 12 |
1 files changed, 5 insertions, 7 deletions
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"]', ], ) |