forked from splewis/get5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (32 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM debian:11
MAINTAINER Alexander Volz ([email protected])
ENV SMVERSION 1.10
ENV _clean="rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*"
ENV _apt_clean="eval apt-get clean && $_clean"
# Install support pkgs
RUN apt-get update -qqy && DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl wget nano net-tools gnupg2 git lib32stdc++6 python \
tar bash && $_apt_clean
# Install pip2
RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py && python2 get-pip.py
RUN mkdir /get5
RUN mkdir /runscripts
RUN mkdir /get5src
COPY dockerrunscript.sh /runscripts
WORKDIR /get5
RUN git clone https://github.com/splewis/sm-builder
WORKDIR /get5/sm-builder
RUN pip install --user -r requirements.txt
RUN python setup.py install --prefix=~/.local
WORKDIR /get5
ENV SMPACKAGE http://sourcemod.net/latest.php?os=linux&version=${SMVERSION}
RUN wget -q ${SMPACKAGE}
RUN tar xfz $(basename ${SMPACKAGE})
RUN chmod +x /get5/addons/sourcemod/scripting/spcomp
ENV PATH "$PATH:/get5/addons/sourcemod/scripting:/root/.local/bin"
WORKDIR /get5/addons/sourcemod/scripting/include
RUN wget https://raw.githubusercontent.com/KyleSanderson/SteamWorks/master/Pawn/includes/SteamWorks.inc
WORKDIR /get5
VOLUME /get5/builds
VOLUME /get5src
CMD ["/runscripts/dockerrunscript.sh"]