about summary refs log tree commit diff
path: root/Dockerfile.ubuntu.template
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-27T00·26+0100
committerVincent Ambo <tazjin@google.com>2020-05-27T00·26+0100
commitafe04691aca3f669f517adaeb5bd4a87a481fb4a (patch)
tree60ae6c91a3959b2f6486256e26ff126e598d1e5d /Dockerfile.ubuntu.template
Squashed 'third_party/glog/' content from commit 9ef754a3023
git-subtree-dir: third_party/glog
git-subtree-split: 9ef754a3023e6fd10f20fe53dfca96dd898182e3
Diffstat (limited to 'Dockerfile.ubuntu.template')
-rw-r--r--Dockerfile.ubuntu.template14
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile.ubuntu.template b/Dockerfile.ubuntu.template
new file mode 100644
index 0000000000..14f9b95891
--- /dev/null
+++ b/Dockerfile.ubuntu.template
@@ -0,0 +1,14 @@
+# Build Ubuntu image
+FROM @BUILD_ARCH@/@BUILD_FLAVOR@:@BUILD_RELEASE@
+
+# see https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#/run
+RUN apt-get update && \
+  apt-get install -y --no-install-recommends \
+  @BUILD_PACKAGES@ \
+  build-essential \
+  g++
+
+RUN mkdir -p /usr/src/app
+WORKDIR /usr/src/app
+
+COPY . /usr/src/app