docker-scripts/linux/advanced/vscode-server/amxx/1.10/Dockerfile

57 lines
2.6 KiB
Docker
Raw Normal View History

2021-11-20 00:58:08 +03:00
################################################################################
# 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
##################################################################
# AMXXModX setup
##################################################################
#
# Reserved for future
2022-11-15 23:56:32 +03:00
# export AMXX_CSTRIKE_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.10/amxmodx-latest-cstrike-linux` && \
# export AMXX_DOD_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.10/amxmodx-latest-dod-linux` && \
# export AMXX_ESF_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.10/amxmodx-latest-esf-linux` && \
# export AMXX_NS_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.10/amxmodx-latest-ns-linux` && \
# export AMXX_TFC_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.10/amxmodx-latest-tfc-linux` && \
# export AMXX_TS_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.10/amxmodx-latest-base-linux` && \
2021-11-20 00:58:08 +03:00
#
# Install packages
2022-11-15 23:56:32 +03:00
ENV AMXX_VERSION=1.10
2021-11-20 00:58:08 +03:00
ENV AMXX_INSTALL_PATH=/opt/amxmodx/$AMXX_VERSION
ENV AMXX_BIN_PATH=$AMXX_INSTALL_PATH/scripting
2022-11-16 13:18:12 +03:00
ENV AMXX_INC_PATH=$AMXX_BIN_PATH/include
2021-11-20 00:58:08 +03:00
ENV PATH=$PATH:$AMXX_BIN_PATH
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AMXX_BIN_PATH
2022-11-16 13:18:12 +03:00
COPY inc.tar /tmp
2022-11-15 23:56:32 +03:00
RUN export AMXX_BASE_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.10/amxmodx-latest-base-linux` && \
2021-11-20 00:58:08 +03:00
mkdir -p $AMXX_INSTALL_PATH && \
curl -SL https://www.amxmodx.org/amxxdrop/{$AMXX_VERSION}/{$AMXX_BASE_LATEST_VERSION} -o /tmp/amxx_base_latest.tar.gz && \
cd /tmp && tar -zxf /tmp/amxx_base_latest.tar.gz && cd / && \
mv -f /tmp/addons/amxmodx/* $AMXX_INSTALL_PATH && \
chmod +x $AMXX_BIN_PATH/amxxpc && \
2022-11-16 13:18:12 +03:00
tar -C $AMXX_INC_PATH -xvf /tmp/inc.tar && \
chmod -R 700 $AMXX_INC_PATH && \
2021-11-20 00:58:08 +03:00
chmod +x $AMXX_BIN_PATH/compile.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 && \
2022-11-15 23:56:32 +03:00
rm -rfv /tmp/*