-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian9.containerfile
27 lines (21 loc) · 1.05 KB
/
debian9.containerfile
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
FROM debian:stretch
ARG CLANG_VERSION=11
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
rm -f /etc/apt/apt.conf.d/docker-clean && \
echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y apt-transport-https lsb-release wget software-properties-common gnupg \
curl git gcc-multilib g++-multilib jq lib32z1-dev python python3-pip && \
wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh ${CLANG_VERSION} && \
rm llvm.sh
RUN wget -O /usr/local/bin/dump_syms https://users.alliedmods.net/~psychonic/dump_syms && \
chmod +x /usr/local/bin/dump_syms
RUN pip3 install git+https://github.com/alliedmodders/ambuild.git
ENV CC=clang-${CLANG_VERSION}
ENV CXX=clang++-${CLANG_VERSION}
CMD ["/bin/bash"]