-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 841 Bytes
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 841 Bytes
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
FROM debian:10-slim
RUN apt-get update && apt-get install -y \
git \
python3 \
python3-pip \
gcc \
g++ \
g++-multilib \
&& rm -rf /var/lib/apt/lists/*
# Clone SM stuff
WORKDIR /dependencies
RUN git clone -b master https://github.com/alliedmodders/metamod-source.git --depth 1
RUN git clone -b master https://github.com/alliedmodders/sourcemod.git --recursive --depth 1
RUN git clone -b master https://github.com/alliedmodders/ambuild.git --depth 1
WORKDIR /dependencies/ambuild
RUN python3 -m pip install .
WORKDIR /project
# Copy the current directory contents into the container at /project
COPY . .
WORKDIR /project/package
ARG BUILD_MODE=optimize
ENV PY_ARG=--enable-$BUILD_MODE
# Build
RUN python3 ../configure.py \
--mms-path "/dependencies/metamod-source" \
--sm-path "/dependencies/sourcemod" \
$PY_ARG
RUN ambuild