From aec1169bdefb6fa77f53359c5cb6f1e634723744 Mon Sep 17 00:00:00 2001 From: dlorenc Date: Wed, 10 May 2017 12:57:24 -0700 Subject: [PATCH] Add a default /etc/passwd with a root user. --- base/BUILD | 8 +++++++- base/passwd | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 base/passwd diff --git a/base/BUILD b/base/BUILD index 2f083ab04..9632b56f4 100644 --- a/base/BUILD +++ b/base/BUILD @@ -9,9 +9,15 @@ docker_build( files = [":empty"], ) +docker_build( + name = "with_passwd", + directory = "/etc", + files = [":passwd"] +) + docker_build( name = "base", - base = ":with_tmp", + base = ":with_passwd", debs = [ "@glibc//file", "@libssl//file", diff --git a/base/passwd b/base/passwd new file mode 100644 index 000000000..5023c83c8 --- /dev/null +++ b/base/passwd @@ -0,0 +1 @@ +root:x:0:0:root:/root:/noshell