dockcross/web-wasm/Dockerfile.in

72 lines
1.4 KiB
Docker
Raw Permalink Normal View History

2023-09-16 21:46:56 +02:00
ARG DOCKER_IMAGE_VERSION=3.1.46
FROM emscripten/emsdk:$DOCKER_IMAGE_VERSION
LABEL 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
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 \
libncurses5 \
ncurses-dev \
pkg-config \
libtool \
python3 \
python3-pip \
2021-11-03 20:17:07 +01:00
osslsigncode \
rsync \
sed \
ssh \
bison \
flex \
tar \
pax \
vim \
wget \
xz-utils \
zlib1g-dev \
&& \
apt-get clean --yes
RUN ln -s /usr/bin/python3 /usr/bin/python
#include "common.dockcross"
#include "common.docker"
#include "common.webassembly"
ENV EMSCRIPTEN_VERSION $DOCKER_IMAGE_VERSION
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
RUN chmod -R 777 /emsdk/upstream/emscripten/cache
ENV CMAKE_TOOLCHAIN_FILE /emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
#include "common.label-and-env"