2021-12-22 07:20:53 +08:00
|
|
|
################################################
|
|
|
|
# cmake-asan
|
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
|
|
|
|
clang \
|
|
|
|
cmake \
|
|
|
|
libconfig-dev \
|
2022-02-08 09:06:59 +08:00
|
|
|
libgtest-dev \
|
2021-12-22 07:20:53 +08:00
|
|
|
libopus-dev \
|
|
|
|
libsodium-dev \
|
|
|
|
libvpx-dev \
|
2022-02-06 08:05:40 +08:00
|
|
|
llvm-dev \
|
2021-12-22 07:20:53 +08:00
|
|
|
ninja-build \
|
|
|
|
pkg-config \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY entrypoint.sh /
|
|
|
|
RUN ["chmod", "755", "/entrypoint.sh"]
|
|
|
|
|
|
|
|
WORKDIR /home/builder
|
|
|
|
RUN groupadd -r -g 1000 builder \
|
|
|
|
&& useradd --no-log-init -r -g builder -u 1000 builder \
|
|
|
|
&& chown builder:builder /home/builder
|
|
|
|
USER builder
|
|
|
|
|
|
|
|
ENV CC=clang CXX=clang++
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|