mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-10 05:07:26 +01:00
81 lines
2.1 KiB
Docker
81 lines
2.1 KiB
Docker
FROM emscripten/emsdk:2.0.4
|
|
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
|
|
ARG REPO=http://cdn-fastly.deb.debian.org
|
|
|
|
RUN \
|
|
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" && \
|
|
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 \
|
|
python \
|
|
python-pip \
|
|
rsync \
|
|
sed \
|
|
ssh \
|
|
bison \
|
|
flex \
|
|
tar \
|
|
pax \
|
|
vim \
|
|
wget \
|
|
xz-utils \
|
|
zlib1g-dev \
|
|
&& \
|
|
apt-get clean --yes
|
|
|
|
#include "common.dockcross"
|
|
|
|
#include "common.docker"
|
|
|
|
ENV EMSCRIPTEN_VERSION 2.0.4
|
|
|
|
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
|
|
|
|
|
|
ENV CMAKE_TOOLCHAIN_FILE /emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
|
|
|
|
# Build-time metadata as defined at http://label-schema.org
|
|
ARG BUILD_DATE
|
|
ARG IMAGE=dockcross/web-wasm
|
|
ARG VERSION=latest
|
|
ARG VCS_REF
|
|
ARG VCS_URL
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
org.label-schema.name=$IMAGE \
|
|
org.label-schema.version=$VERSION \
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
org.label-schema.vcs-url=$VCS_URL \
|
|
org.label-schema.schema-version="1.0"
|
|
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}
|