json-c-json-c
SUCCESS
2m 36s
History Source
SummaryIterations1Transcript3Dockerfile
01Iteration 1
WRITEWriteFile· step #1
0s
Dockerfile694 bytes written
text29 lines · 694 chars
# Dockerfile for building json-c from source using Meson on Ubuntu 22.04
FROM ubuntu:22.04

# Non-interactive installation
ENV DEBIAN_FRONTEND=noninteractive

# Install build dependencies
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        build-essential \
        meson \
        ninja-build \
        pkgconf \
    && rm -rf /var/lib/apt/lists/*

# Working directory for the build
WORKDIR /workspace

# Copy the repository contents
COPY . .

# Build from source using Meson, then run tests
RUN meson setup build -Dwarning_level=3 -Dbuildtype=debug \
    && meson compile -C build \
    && meson test -C build

# Default to an interactive shell
CMD ["/bin/bash"]
WRITEWriteFile· step #2
0s
.dockerignore208 bytes written
dockerignore16 lines · 208 chars
# Ignore version control and build artifacts
.git/
**/.git/
.DS_Store
Thumbs.db
# Meson build directories and cache
meson-info/
meson-offline/
build/
**/build/
# Logs and temporary files
*.log
*.tmp
*.cache

VERIFYVerifyBuild· step #3
1m 15s
VerifyBuildaccepted
Smoke [PASS]: meson test -C /workspace/build