blob: 29f7d8d9ff0ff15176c84872ea9a27cfa4ee335d [file] [log] [blame]
ARG FROM_IMAGE
FROM ${FROM_IMAGE:-cobalt-build-base}
RUN apt update -qqy \
&& apt install -qqy --no-install-recommends \
pkgconf ninja-build bison yasm \
binutils \
clang \
libgles2-mesa-dev \
mesa-common-dev \
libpulse-dev \
libavformat-dev \
libavresample-dev \
libasound2-dev \
libxrender-dev \
libxcomposite-dev \
&& apt-get clean autoclean \
&& apt-get autoremove -y --purge \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& rm -rf /var/lib/{apt,dpkg,cache,log} \
&& echo "Done"
CMD /code/cobalt/build/gyp_cobalt -v -C ${CONFIG} ${PLATFORM} && \
ninja -C ${OUTDIR}/${PLATFORM}_${CONFIG} ${TARGET:-cobalt_deploy}