Skip to content

Commit 5262413

Browse files
authored
Dockerfile: Use debian/stretch as base image (WebAssembly#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).
1 parent 9241377 commit 5262413

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
FROM ubuntu:xenial as build-env
1+
# Use a relatively old/stable distro here to maximize the supported platforms
2+
# and avoid depending on more recent version of, say, libc.
3+
FROM debian:stretch
24

35
RUN apt-get update \
46
&& apt-get install -y --no-install-recommends \
5-
build-essential \
6-
clang \
7-
cmake \
8-
python \
9-
git \
10-
ninja-build \
7+
build-essential \
8+
clang \
9+
cmake \
10+
python \
11+
git \
12+
ninja-build \
13+
&& apt-get clean \
1114
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)