From 5262413103554ed651ee1793c12f0123e75c3069 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 11 Oct 2019 11:36:22 -0700 Subject: [PATCH] Dockerfile: Use debian/stretch as base image (#65) Ubuntu is based on debian and debian a more stable base to build on IMHO. This shouldn't effect much other than some minor changes in the exact version clang we use to cross compile and the specific linked host shared libraries. Also, run `apt-get clean` to minimize image size (not that that really matters since this is only used during SDK build). --- Dockerfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 838b52b..8c9cce5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,14 @@ -FROM ubuntu:xenial as build-env +# Use a relatively old/stable distro here to maximize the supported platforms +# and avoid depending on more recent version of, say, libc. +FROM debian:stretch RUN apt-get update \ && apt-get install -y --no-install-recommends \ - build-essential \ - clang \ - cmake \ - python \ - git \ - ninja-build \ + build-essential \ + clang \ + cmake \ + python \ + git \ + ninja-build \ + && apt-get clean \ && rm -rf /var/lib/apt/lists/*