FROM ubuntu:jammy-20260210.1
ENV DEBIAN_FRONTEND=noninteractive
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
build-essential \
meson \
ninja-build \
pkg-config \
python3 \
python3-pip \
libbsd-dev; \
rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY . /workspace
RUN meson setup build -Dwarning_level=3 -Dbuildtype=debug && \
meson compile -C build --verbose && \
meson test -C build --verbose
CMD ["/bin/bash"]
**/.git **/.gitignore build build/ *.o *.a *.so *.log *.tmp *.swp *.bak
Concerns: No 'meson install' step; built library may not be installed into the system, which could be a limitation for runtime usage., FROM tag uses a dated image tag (ubuntu:jammy-20260210.1); ensure this tag exists in the registry and is acceptable for CI. Smoke [FAIL]: test -d /workspace/build && echo 'build dir exists Output: sh: 1: Syntax error: Unterminated quoted string Smoke [FAIL]: find /workspace -name 'lib*.so' -print -quit || echo 'no lib*.so found Output: sh: 1: Syntax error: Unterminated quoted string Smoke [PASS]: ls -la /workspace/build || true
FROM ubuntu:jammy-20260210.1
ENV DEBIAN_FRONTEND=noninteractive
RUN bash -lc '
set -euo pipefail
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
meson \
ninja-build \
pkg-config \
python3 \
python3-pip \
libbsd-dev
rm -rf /var/lib/apt/lists/*
'
WORKDIR /workspace
COPY . /workspace
RUN bash -lc '
meson setup build -Dwarning_level=3 -Dbuildtype=debug
meson compile -C build --verbose
meson test -C build --verbose
'
CMD ["/bin/bash"]
#0 building with "default" instance using docker driver #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 551B done #1 DONE 0.0s Dockerfile:6 -------------------- 4 | 5 | RUN bash -lc ' 6 | >>> set -euo pipefail 7 | apt-get update 8 | apt-get install -y --no-install-recommends \ -------------------- ERROR: failed to build: failed to solve: dockerfile parse error on line 6: unknown instruction: set (did you mean user?)
FROM ubuntu:jammy-20260210.1
ENV DEBIAN_FRONTEND=noninteractive
RUN set -e; \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
meson \
ninja-build \
pkg-config \
python3 \
python3-pip \
libbsd-dev && \
rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY . /workspace
RUN set -e; \
meson setup build -Dwarning_level=3 -Dbuildtype=debug && \
meson compile -C build --verbose && \
meson test -C build --verbose
CMD ["/bin/bash"]
Concerns: FROM image tag ubuntu:jammy-20260210.1 may not be publicly available or valid in all registries; confirm the image tag exists or switch to a standard Ubuntu jammy tag, COPY . /workspace copies the entire repository into the image; consider using a .dockerignore to exclude large or unnecessary files and speed up builds, Meson tests are executed during image build (meson test -C build --verbose); ensure tests are deterministic and do not require interactive input or network access in CI environments Smoke [PASS]: test -d /workspace/build && test -f /workspace/build/build.ninja Smoke [PASS]: ls -la /workspace/build | head -n 5 Smoke [PASS]: meson --version