fix(Dockerfile): update Meson version and README

Update the Meson version in the Dockerfile because commit
d54e365 changed the minimum required version

Add a command to the README to remove orphan Docker images

Update the run command in the README to include a config that
automatically removes the container when it exits

Signed-off-by: ViniciusCruzMoura <contato.cruz.moura@gmail.com>
This commit is contained in:
ViniciusCruzMoura 2026-03-22 19:10:18 -04:00
parent 37dff30878
commit 882680f4f9
2 changed files with 14 additions and 2 deletions

View file

@ -12,7 +12,6 @@ RUN apt-get update \
gcc-14 g++-14 \
python3 \
ninja-build \
meson \
libsdl2-dev \
libgl-dev \
libglu1-mesa-dev \
@ -25,4 +24,13 @@ RUN apt-get update \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Use the latest version of Meson -> $(curl -s "https://api.github.com/repos/mesonbuild/meson/releases/latest" | grep -Po '"tag_name": "\K[0-9.]+')
RUN MESON_VERSION=1.10.2 \
&& wget -qO meson.tar.gz https://github.com/mesonbuild/meson/releases/latest/download/meson-${MESON_VERSION}.tar.gz \
&& mkdir /opt/meson \
&& tar xf meson.tar.gz --strip-components=1 -C /opt/meson \
&& mv /opt/meson/meson.py /opt/meson/meson \
&& ln -s /opt/meson/meson /usr/bin/meson \
&& rm -rf meson.tar.gz
ENV DEBIAN_FRONTEND=dialog

View file

@ -61,7 +61,11 @@ Alternatively, you can build and use the container manually:
```bash
docker build -t 4jcraft-dev .devcontainer/
docker run -it -v $(pwd):/workspaces/4jcraft -w /workspaces/4jcraft 4jcraft-dev bash
docker run -it --rm -v $(pwd):/workspaces/4jcraft -w /workspaces/4jcraft 4jcraft-dev bash
```
(Optional) Clean up the Docker image
```bash
docker rmi 4jcraft-dev --force
```
### Configure & Build