Skip to content

Instantly share code, notes, and snippets.

@yeputons
Created February 15, 2017 05:29
Show Gist options
  • Save yeputons/c90a5d3d6f8b819aadecf68260b1c5bb to your computer and use it in GitHub Desktop.
Save yeputons/c90a5d3d6f8b819aadecf68260b1c5bb to your computer and use it in GitHub Desktop.
load("@bazel_tools//tools/build_defs/docker:docker.bzl", "docker_build")
cc_binary(
name = "hello",
srcs = ["main.cc"],
)
docker_build(
name = "hello_docker",
files = [":hello"],
cmd = ["./hello"],
)
#include <stdio.h>
int main() { printf("Hello World\n"); }
# Intentionally empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment