2021-10-23 11:45:07 +02:00
|
|
|
FROM debian:10-slim
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND="noninteractive"
|
|
|
|
ARG uid=1000
|
|
|
|
ARG gid=1000
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install --yes --no-install-recommends \
|
2021-10-28 10:46:45 +02:00
|
|
|
autoconf \
|
2021-10-23 11:45:07 +02:00
|
|
|
bash \
|
2021-10-23 12:49:47 +02:00
|
|
|
ca-certificates \
|
2021-10-23 11:45:07 +02:00
|
|
|
curl \
|
|
|
|
findutils \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
grep \
|
|
|
|
libdbus-1-3 \
|
2021-10-23 12:49:47 +02:00
|
|
|
libegl1 \
|
2021-10-23 11:45:07 +02:00
|
|
|
libfontconfig1 \
|
|
|
|
libgl1 \
|
2021-10-23 12:49:47 +02:00
|
|
|
libgstreamer-gl1.0-0 \
|
|
|
|
libgstreamer-plugins-base1.0 \
|
|
|
|
libgstreamer1.0-0 \
|
2021-10-23 11:45:07 +02:00
|
|
|
libnss3 \
|
|
|
|
libpulse-mainloop-glib0 \
|
2021-10-23 12:49:47 +02:00
|
|
|
libssl-dev \
|
2021-10-23 11:45:07 +02:00
|
|
|
libxcomposite1 \
|
|
|
|
libxcursor1 \
|
|
|
|
libxi6 \
|
|
|
|
libxkbcommon-x11-0 \
|
|
|
|
libxkbcommon0 \
|
2021-10-23 12:49:47 +02:00
|
|
|
libxkbfile1 \
|
2021-10-23 11:45:07 +02:00
|
|
|
libxrandr2 \
|
|
|
|
libxrender1 \
|
|
|
|
libxtst6 \
|
2021-10-28 10:46:45 +02:00
|
|
|
make \
|
2021-10-23 12:49:47 +02:00
|
|
|
pkg-config \
|
2021-10-23 11:45:07 +02:00
|
|
|
portaudio19-dev \
|
|
|
|
rsync \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.10.1/bazelisk-linux-amd64 \
|
|
|
|
-o /usr/local/bin/bazel \
|
|
|
|
&& chmod +x /usr/local/bin/bazel
|
|
|
|
|
|
|
|
RUN mkdir -p /code/bazel-docker/home && \
|
|
|
|
echo groupadd -g ${gid} user && \
|
|
|
|
useradd -d /code/bazel-docker/home -m -u ${uid} user && \
|
|
|
|
chown -R user.user /code
|
|
|
|
|
|
|
|
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
|
|
|
|
|
|
|
USER user
|
|
|
|
COPY build-entrypoint /tmp
|
|
|
|
WORKDIR /code
|
|
|
|
ENV XDG_CACHE_HOME=/code/bazel-docker/home
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash", "/tmp/build-entrypoint"]
|