2024-05-24 19:45:37 +02:00
|
|
|
ARG DOCKER_IMAGE_VERSION=3.1.60
|
2022-05-20 10:01:09 +02:00
|
|
|
FROM emscripten/emsdk:$DOCKER_IMAGE_VERSION
|
2021-10-04 12:51:28 +02:00
|
|
|
|
|
|
|
LABEL maintainer="Matt McCormick matt.mccormick@kitware.com"
|
2016-11-25 21:45:32 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
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 23:58:41 +02:00
|
|
|
python3 \
|
|
|
|
python3-pip \
|
2021-11-03 20:17:07 +01:00
|
|
|
osslsigncode \
|
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 23:58:41 +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"
|
|
|
|
|
2022-01-02 03:40:22 +01:00
|
|
|
#include "common.webassembly"
|
|
|
|
|
2022-05-20 10:01:09 +02:00
|
|
|
ENV EMSCRIPTEN_VERSION $DOCKER_IMAGE_VERSION
|
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"
|