stlink-org-stlink
SUCCESS
8m 14s
History Source
SummaryIterations1Transcript14Dockerfile
Dockerfile33 lines · 781 chars
FROM ubuntu:jammy-20260217

# Non-interactive frontend for apt
ENV DEBIAN_FRONTEND=noninteractive

# Install build dependencies
RUN apt-get update \
 && apt-get install -y --no-install-recommends \
    build-essential \
    cmake \
    pkg-config \
    libusb-1.0-0-dev \
    libgtk-3-dev \
    rpm \
    git \
 && rm -rf /var/lib/apt/lists/*

# Copy source tree
WORKDIR /src
COPY . .

# Build both Debug and Release configurations
RUN mkdir -p build/Debug && \
    cmake -S . -B build/Debug -DCMAKE_BUILD_TYPE=Debug && \
    cmake --build build/Debug --target all

RUN mkdir -p build/Release && \
    cmake -S . -B build/Release -DCMAKE_BUILD_TYPE=Release && \
    cmake --build build/Release --target all

# Default to an interactive shell to inspect the image
CMD ["/bin/bash"]