2020-01-30 12:28:56 +03:00
|
|
|
FROM epicmorg/edge
|
2019-09-18 19:33:04 +03:00
|
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2019-09-24 15:25:47 +03:00
|
|
|
##################################################################
|
|
|
|
# ARGuments
|
|
|
|
##################################################################
|
|
|
|
ENV BuildDocker true
|
|
|
|
ARG BUILDS_DIR=/builds
|
|
|
|
ARG SRC_DIR=${BUILDS_DIR}/src
|
|
|
|
ARG EXPORT_DIR=${BUILDS_DIR}/export
|
2021-10-29 15:28:15 +03:00
|
|
|
ARG NINJA_ARCH=linux
|
|
|
|
ARG NINJA_VERSION=latest
|
|
|
|
ARG NINJA_RELEASE_URL=https://api.github.com/repos/ninja-build/ninja/releases/${NINJA_VERSION}
|
2019-09-24 15:25:47 +03:00
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# Files and folders
|
|
|
|
##################################################################
|
|
|
|
RUN mkdir -p ${SRC_DIR} ${EXPORT_DIR} ${PRE_DIR}
|
|
|
|
|
2019-09-18 19:33:04 +03:00
|
|
|
##################################################################
|
|
|
|
# sid sources list
|
|
|
|
##################################################################
|
2020-01-30 18:36:30 +03:00
|
|
|
RUN apt update && \
|
|
|
|
apt-get autoremove -y && \
|
|
|
|
apt dist-upgrade -y
|
2019-09-18 19:33:04 +03:00
|
|
|
|
|
|
|
##################################################################
|
2020-01-29 15:56:50 +03:00
|
|
|
# deps
|
2019-09-18 19:33:04 +03:00
|
|
|
##################################################################
|
|
|
|
RUN apt-get update && \
|
2019-09-25 21:26:45 +03:00
|
|
|
apt install -y --allow-unauthenticated --allow-downgrades \
|
2019-09-18 19:33:04 +03:00
|
|
|
build-essential \
|
2021-01-27 19:56:07 +03:00
|
|
|
autoconf-archive \
|
|
|
|
gnu-standards \
|
2021-10-29 15:28:15 +03:00
|
|
|
cmake \
|
|
|
|
libunwind-dev \
|
|
|
|
golang \
|
2021-01-27 19:56:07 +03:00
|
|
|
at \
|
|
|
|
autopkgtest \
|
2019-09-18 19:33:04 +03:00
|
|
|
gcc-multilib \
|
2019-09-25 21:26:45 +03:00
|
|
|
g++-multilib \
|
2019-09-18 19:33:04 +03:00
|
|
|
libxkbcommon-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libegl1-mesa-dev \
|
|
|
|
libgles2-mesa-dev \
|
|
|
|
libgbm-dev \
|
2021-10-29 15:28:15 +03:00
|
|
|
uuid-dev \
|
2019-09-18 19:33:04 +03:00
|
|
|
nvidia-cg-toolkit \
|
|
|
|
nvidia-cg-dev \
|
|
|
|
libavcodec-dev \
|
|
|
|
libsdl2-dev \
|
|
|
|
libsdl-image1.2-dev \
|
2019-09-25 21:26:45 +03:00
|
|
|
libxml2-dev yasm \
|
2019-09-18 19:33:04 +03:00
|
|
|
devscripts \
|
|
|
|
automake \
|
|
|
|
libtool \
|
|
|
|
autotools-dev \
|
|
|
|
dpkg-dev \
|
|
|
|
fakeroot \
|
|
|
|
checkinstall \
|
2019-09-25 21:26:45 +03:00
|
|
|
dh-make \
|
2019-09-23 14:55:02 +03:00
|
|
|
zlib1g \
|
|
|
|
zlib1g-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
libgd-dev \
|
|
|
|
libpcre3-dev \
|
|
|
|
libgeoip-dev \
|
|
|
|
libkrb5-dev \
|
|
|
|
libperl-dev \
|
|
|
|
krb5-user \
|
|
|
|
luajit \
|
|
|
|
liblua5.1-0-dev \
|
|
|
|
libmaxminddb-dev \
|
|
|
|
libpam0g-dev \
|
|
|
|
libldap2-dev \
|
|
|
|
libavformat-dev \
|
|
|
|
libavfilter-dev \
|
|
|
|
libswscale-dev \
|
|
|
|
libavcodec-dev \
|
|
|
|
libz-dev \
|
|
|
|
libhiredis-dev \
|
|
|
|
libzip-dev \
|
|
|
|
libcrypto++-dev \
|
|
|
|
libbz2-dev \
|
2019-09-25 19:07:51 +03:00
|
|
|
libvpx-dev \
|
2019-11-28 17:09:05 +03:00
|
|
|
libvpx6 \
|
2019-09-23 14:55:02 +03:00
|
|
|
tcl
|
2020-01-30 18:36:30 +03:00
|
|
|
|
2021-10-29 15:28:15 +03:00
|
|
|
##################################################################
|
|
|
|
# Get NINJA binary
|
|
|
|
##################################################################
|
|
|
|
RUN curl -s ${NINJA_RELEASE_URL} | jq -r ".assets[] | select(.name | test(\"${NINJA_ARCH}\")) | .browser_download_url" > /tmp/ninja-url.txt && \
|
|
|
|
cat /tmp/ninja-url.txt && \
|
|
|
|
cd /tmp && \
|
|
|
|
wget -q -c --input-file=/tmp/ninja-url.txt && \
|
|
|
|
unzip -o /tmp/ninja-linux.zip -d /bin && \
|
|
|
|
printf "\n--------------------------------\nninja version: $(ninja --version)\n--------------------------------\n\n"
|
2019-09-25 18:42:41 +03:00
|
|
|
|
2019-09-18 19:33:04 +03:00
|
|
|
##################################################################
|
|
|
|
# other customisations
|
|
|
|
##################################################################
|
|
|
|
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# cleaninig up
|
|
|
|
##################################################################
|
2020-07-17 17:53:53 +03:00
|
|
|
RUN apt purge policykit-1 -y && \
|
|
|
|
apt clean -y && \
|
2019-09-23 16:31:14 +03:00
|
|
|
apt autoclean -y && \
|
|
|
|
rm -rfv /var/lib/apt/lists/* && \
|
2021-10-29 15:28:15 +03:00
|
|
|
rm -rfv /var/cache/apt/archives/*.deb && \
|
|
|
|
rm -rfv /tmp/*
|