mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-26 22:55:44 +03:00
57 lines
2.6 KiB
Docker
57 lines
2.6 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
|
|
|
|
##################################################################
|
|
# AMXXModX setup
|
|
##################################################################
|
|
#
|
|
# Reserved for future
|
|
# 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` && \
|
|
#
|
|
# Install packages
|
|
ENV AMXX_VERSION=1.10
|
|
ENV AMXX_INSTALL_PATH=/opt/amxmodx/$AMXX_VERSION
|
|
ENV AMXX_BIN_PATH=$AMXX_INSTALL_PATH/scripting
|
|
ENV AMXX_INC_PATH=$AMXX_BIN_PATH/include
|
|
ENV PATH=$PATH:$AMXX_BIN_PATH
|
|
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AMXX_BIN_PATH
|
|
|
|
COPY inc.tar /tmp
|
|
|
|
RUN export AMXX_BASE_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.10/amxmodx-latest-base-linux` && \
|
|
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 && \
|
|
tar -C $AMXX_INC_PATH -xvf /tmp/inc.tar && \
|
|
chmod -R 700 $AMXX_INC_PATH && \
|
|
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 && \
|
|
rm -rfv /tmp/*
|