about summary refs log tree commit diff
path: root/Dockerfile.ubuntu.template
diff options
context:
space:
mode:
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