libevent-libevent
SUCCESS
2m 37s
History Source
SummaryIterations1Transcript4Dockerfile
Dockerfile29 lines · 754 chars
# Built for Libevent - build from source using CMake on Ubuntu Jammy
FROM ubuntu:jammy-20260210.1

# Install required build tools and libraries
RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        build-essential \
        cmake \
        pkg-config \
        libmbedtls-dev \
        libssl-dev \
        zlib1g-dev \
        ca-certificates \
    && rm -rf /var/lib/apt/lists/*

# Set working directory to the repository root inside the image
WORKDIR /libevent

# Copy the entire repository into the image
COPY . .

# Build the project from source
RUN mkdir -p build \
    && cmake -S . -B build \
    && cmake --build build

# Default to an interactive shell for inspection
CMD ["/bin/bash"]