-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 1.1 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
FROM debian:10
ENV SMVERSION 1.10
ENV _clean="rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*"
ENV _apt_clean="eval apt-get clean && $_clean"
RUN apt-get update -qqy && DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl wget nano net-tools gnupg2 git lib32stdc++6 python \
python-pip tar bash && $_apt_clean
RUN mkdir /src
RUN mkdir /builder
RUN mkdir /runscripts
RUN mkdir /out
WORKDIR /builder
RUN git clone https://github.com/splewis/sm-builder
WORKDIR /builder/sm-builder
RUN pip install --user -r requirements.txt
RUN python setup.py install --prefix=~/.local
WORKDIR /builder
ENV SMPACKAGE http://sourcemod.net/latest.php?os=linux&version=${SMVERSION}
RUN wget -q ${SMPACKAGE}
RUN tar xfz $(basename ${SMPACKAGE})
RUN chmod +x /builder/addons/sourcemod/scripting/spcomp
ENV PATH "$PATH:/builder/addons/sourcemod/scripting:/root/.local/bin"
WORKDIR /builder/addons/sourcemod/scripting/include
RUN wget https://raw.githubusercontent.com/KyleSanderson/SteamWorks/master/Pawn/includes/SteamWorks.inc
WORKDIR /builder
VOLUME /src
VOLUME /out
COPY docker_run.sh /runscripts
CMD ["/runscripts/docker_run.sh"]