2020-04-14 03:02:32 +02:00
|
|
|
FROM trzeci/emscripten-fastcomp:sdk-tag-1.39.10-64bit
|
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-06-08 23:47:03 +02:00
|
|
|
COPY imagefiles/install-gosu-binary-wrapper.sh /buildscripts/
|
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 \
|
|
|
|
python \
|
|
|
|
python-pip \
|
|
|
|
rsync \
|
|
|
|
sed \
|
|
|
|
ssh \
|
|
|
|
bison \
|
|
|
|
flex \
|
|
|
|
tar \
|
|
|
|
pax \
|
|
|
|
vim \
|
|
|
|
wget \
|
|
|
|
xz-utils \
|
|
|
|
zlib1g-dev \
|
|
|
|
&& \
|
|
|
|
apt-get clean --yes && \
|
2019-06-08 23:47:03 +02:00
|
|
|
/buildscripts/install-gosu-binary-wrapper.sh && \
|
2019-01-20 18:59:32 +01:00
|
|
|
rm -rf /buildscripts
|
2016-11-25 21:45:32 +01:00
|
|
|
|
|
|
|
#include "common.docker"
|
|
|
|
|
2020-04-14 03:02:32 +02:00
|
|
|
ENV EMSCRIPTEN_VERSION 1.39.10
|
2016-11-25 21:45:32 +01:00
|
|
|
|
2020-04-14 03:02:32 +02:00
|
|
|
ENV PATH /emsdk_portable:/emsdk_portable/llvm/clang/bin/:/emsdk_portable/emscripten/sdk:${PATH}
|
|
|
|
ENV CC=/emsdk_portable/emscripten/sdk/emcc \
|
|
|
|
CXX=/emsdk_portable/emscripten/sdk/em++ \
|
|
|
|
AR=/emsdk_portable/emscripten/sdk/emar
|
2016-11-25 21:45:32 +01:00
|
|
|
|
|
|
|
|
2020-04-14 03:02:32 +02:00
|
|
|
ENV CMAKE_TOOLCHAIN_FILE /emsdk_portable/emscripten/sdk/cmake/Modules/Platform/Emscripten.cmake
|
2017-09-14 17:44:44 +02:00
|
|
|
|
2016-11-25 21:45:32 +01:00
|
|
|
# Build-time metadata as defined at http://label-schema.org
|
|
|
|
ARG BUILD_DATE
|
2019-01-19 22:02:33 +01:00
|
|
|
ARG IMAGE=dockcross/web-wasm
|
2019-01-02 03:15:02 +01:00
|
|
|
ARG VERSION=latest
|
2016-11-25 21:45:32 +01:00
|
|
|
ARG VCS_REF
|
|
|
|
ARG VCS_URL
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
|
|
org.label-schema.name=$IMAGE \
|
2019-01-02 03:15:02 +01:00
|
|
|
org.label-schema.version=$VERSION \
|
2016-11-25 21:45:32 +01:00
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.vcs-url=$VCS_URL \
|
|
|
|
org.label-schema.schema-version="1.0"
|
2019-01-02 03:15:02 +01:00
|
|
|
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}
|