2020-09-28 23:58:06 +02:00
|
|
|
FROM emscripten/emsdk:2.0.4
|
2016-11-25 21:45:32 +01:00
|
|
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
|
|
|
|
|
|
|
# Revert back to "/bin/sh" as default shell
|
|
|
|
# See https://github.com/asRIA/emscripten-docker/blob/master/Dockerfile.in#L4
|
|
|
|
RUN rm /bin/sh && ln -s /bin/dash /bin/sh
|
|
|
|
|
2019-01-20 18:59:32 +01:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG REPO=http://cdn-fastly.deb.debian.org
|
|
|
|
|
|
|
|
RUN \
|
2020-04-14 03:02:32 +02:00
|
|
|
bash -c "echo \"deb $REPO/debian buster main contrib non-free\" > /etc/apt/sources.list" && \
|
|
|
|
bash -c "echo \"deb $REPO/debian buster-updates main contrib non-free\" >> /etc/apt/sources.list" && \
|
|
|
|
bash -c "echo \"deb $REPO/debian-security buster/updates main\" >> /etc/apt/sources.list" && \
|
|
|
|
bash -c "echo \"deb http://ftp.debian.org/debian buster-backports main\" >> /etc/apt/sources.list" && \
|
2019-01-20 18:59:32 +01:00
|
|
|
apt-get update --yes && \
|
|
|
|
apt-get install --no-install-recommends --yes \
|
|
|
|
automake \
|
|
|
|
autogen \
|
|
|
|
bash \
|
|
|
|
build-essential \
|
|
|
|
bc \
|
|
|
|
bzip2 \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
dirmngr \
|
|
|
|
file \
|
|
|
|
gettext \
|
|
|
|
gnupg2 \
|
|
|
|
gosu \
|
|
|
|
gzip \
|
|
|
|
zip \
|
|
|
|
make \
|
2020-05-06 18:21:11 +02:00
|
|
|
libncurses5 \
|
2019-01-20 18:59:32 +01:00
|
|
|
ncurses-dev \
|
|
|
|
pkg-config \
|
|
|
|
libtool \
|
2021-05-26 22:28:33 +02:00
|
|
|
python3 \
|
|
|
|
python3-pip \
|
2019-01-20 18:59:32 +01:00
|
|
|
rsync \
|
|
|
|
sed \
|
|
|
|
ssh \
|
|
|
|
bison \
|
|
|
|
flex \
|
|
|
|
tar \
|
|
|
|
pax \
|
|
|
|
vim \
|
|
|
|
wget \
|
|
|
|
xz-utils \
|
|
|
|
zlib1g-dev \
|
|
|
|
&& \
|
2020-06-27 05:43:35 +02:00
|
|
|
apt-get clean --yes
|
|
|
|
|
2021-05-26 22:28:33 +02:00
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
|
|
|
2020-06-27 05:43:35 +02:00
|
|
|
#include "common.dockcross"
|
2016-11-25 21:45:32 +01:00
|
|
|
|
|
|
|
#include "common.docker"
|
|
|
|
|
2020-09-28 23:58:06 +02:00
|
|
|
ENV EMSCRIPTEN_VERSION 2.0.4
|
2016-11-25 21:45:32 +01:00
|
|
|
|
2020-09-28 23:58:06 +02:00
|
|
|
ENV PATH /emsdk:/emsdk/upstream/bin/:/emsdk/upstream/emscripten:${PATH}
|
|
|
|
ENV CC=/emsdk/upstream/emscripten/emcc \
|
|
|
|
CXX=/emsdk/upstream/emscripten/em++ \
|
|
|
|
AR=/emsdk/upstream/emscripten/emar
|
2016-11-25 21:45:32 +01:00
|
|
|
|
2020-10-14 23:35:40 +02:00
|
|
|
RUN chmod -R 777 /emsdk/upstream/emscripten/cache
|
2016-11-25 21:45:32 +01:00
|
|
|
|
2020-09-28 23:58:06 +02:00
|
|
|
ENV CMAKE_TOOLCHAIN_FILE /emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
|
2017-09-14 17:44:44 +02:00
|
|
|
|
2020-05-07 02:21:14 +02:00
|
|
|
#include "common.label-and-env"
|