| 1 |
FROM debian:bookworm |
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND noninteractive |
| 4 |
|
| 5 |
# deb-src is not included by default in the docker image, so we duplicate every |
| 6 |
# line in `sources.list` that begins with `deb` and create a new line that |
| 7 |
# starts with `deb-src`. |
| 8 |
RUN cp /etc/apt/sources.list /etc/apt/sources.list~ && \ |
| 9 |
sed -i 's/\(^deb\)\(.*\)$/\1\2\n\1-src \2/' /etc/apt/sources.list |
| 10 |
|
| 11 |
RUN apt-get update && apt-get upgrade -y && \ |
| 12 |
apt-get install -y wget curl clang meson rsync jq && \ |
| 13 |
apt-get build-dep -y mesa && \ |
| 14 |
rm -rf /var/lib/apt/lists/* |
| 15 |
|
| 16 |
COPY ./build_mesa.sh /opt/build_mesa.sh |
| 17 |
|
| 18 |
# Add entry point so we can run the container w/o having to specifying the |
| 19 |
# script name. |
| 20 |
ENTRYPOINT ["/opt/build_mesa.sh"] |