mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-27 07:05:41 +03:00
126 lines
3.7 KiB
Docker
126 lines
3.7 KiB
Docker
################################################################################
|
|
# https://github.com/linuxserver/docker-code-server/pkgs/container/code-server
|
|
################################################################################
|
|
FROM epicmorg/vscode-server:latest
|
|
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
##################################################################
|
|
# ARGuments
|
|
##################################################################
|
|
ENV BuildDocker true
|
|
ARG NINJA_ARCH=linux
|
|
ARG NINJA_VERSION=latest
|
|
ARG NINJA_RELEASE_URL=https://api.github.com/repos/ninja-build/ninja/releases/${NINJA_VERSION}
|
|
|
|
##################################################################
|
|
# deps
|
|
##################################################################
|
|
RUN apt-get update && \
|
|
apt install -y --allow-unauthenticated --allow-downgrades \
|
|
build-essential \
|
|
autoconf-archive \
|
|
gnu-standards \
|
|
cmake \
|
|
libunwind-dev \
|
|
golang \
|
|
at \
|
|
autopkgtest \
|
|
gcc-multilib \
|
|
g++-multilib \
|
|
libxkbcommon-dev \
|
|
zlib1g-dev \
|
|
libfreetype6-dev \
|
|
libegl1-mesa-dev \
|
|
libgles2-mesa-dev \
|
|
libgbm-dev \
|
|
uuid-dev \
|
|
nvidia-cg-toolkit \
|
|
nvidia-cg-dev \
|
|
libavcodec-dev \
|
|
libsdl2-dev \
|
|
libsdl-image1.2-dev \
|
|
libxml2-dev \
|
|
yasm \
|
|
devscripts \
|
|
automake \
|
|
libtool \
|
|
autotools-dev \
|
|
dpkg-dev \
|
|
fakeroot \
|
|
checkinstall \
|
|
dh-make \
|
|
zlib1g \
|
|
zlib1g-dev \
|
|
libssl-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 \
|
|
libvpx-dev \
|
|
libvpx6 \
|
|
libc6 \
|
|
libgssapi-krb5-2 \
|
|
liblttng-ust0 \
|
|
libssl1.1 \
|
|
libstdc++6 \
|
|
zlib1g \
|
|
tcl
|
|
|
|
##################################################################
|
|
# 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"
|
|
|
|
##################################################################
|
|
# steam runtime and ssdk
|
|
##################################################################
|
|
RUN cd / && \
|
|
sudo mkdir valve && \
|
|
cd valve && \
|
|
sudo wget http://media.steampowered.com/client/runtime/steam-runtime-sdk_latest.tar.xz && \
|
|
sudo tar xvf steam-runtime-sdk_latest.tar.xz && \
|
|
sudo mv steam-runtime-sdk_2013-09-05 steam-runtime && \
|
|
sudo chown root:root * -R && \
|
|
cd steam-runtime && \
|
|
printf '%s\n' 3 1 Y Y Y | ./setup.sh
|
|
|
|
##################################################################
|
|
# cleaninig up
|
|
##################################################################
|
|
RUN apt purge policykit-1 -y && \
|
|
apt clean -y && \
|
|
apt autoclean -y && \
|
|
rm -rfv /var/lib/apt/lists/* && \
|
|
rm -rfv /tmp/mc.patch && \
|
|
rm -rfv /var/cache/apt/archives/*.deb && \
|
|
rm -rfv /tmp/7z && \
|
|
rm -rfv /tmp/deb/* && \
|
|
rm -rfv /tmp/composer-setup.php && \
|
|
rm -rfv /tmp/amxx_base_latest.tar.gz && \
|
|
rm -rfv /tmp/atlassian-plugin-sdk.deb && \
|
|
rm -rfv /tmp/addons
|