43 lines
1.2 KiB
Docker
43 lines
1.2 KiB
Docker
FROM alpine:3.21.3 AS build
|
|
|
|
RUN apk update && \
|
|
apk add --no-cache \
|
|
libstdc++
|
|
|
|
# Install tools required for building.
|
|
RUN apk add --no-cache \
|
|
autoconf \
|
|
bash \
|
|
build-base \
|
|
cmake \
|
|
clang \
|
|
clang-extra-tools \
|
|
gdb \
|
|
git \
|
|
libtool \
|
|
linux-headers \
|
|
ninja \
|
|
m4 \
|
|
perl \
|
|
python3 \
|
|
py3-pip && \
|
|
pip install --break-system-packages conan && \
|
|
conan profile detect
|
|
|
|
# Pre-build some conan packages we require and take a lot of time to build. This to
|
|
# avoid expensive rebuilding everytime we need a fresh dev container..
|
|
RUN mkdir -p /workspaces/tmp
|
|
WORKDIR /workspaces/tmp
|
|
RUN conan install -s build_type=Debug -b=* --requires=boost/1.89.0
|
|
RUN conan install -s build_type=Debug -b=* --requires=libmagic/5.45
|
|
RUN conan install -s build_type=Debug -b=* --requires=freetype/2.14.1
|
|
RUN conan install -s build_type=Debug -b=missing --requires=gtest/1.14.0
|
|
RUN conan install -s build_type=Debug -b=missing --requires=libjpeg/9f
|
|
|
|
# Remove the temporary workspace, build results for the conan packages remain cached.
|
|
WORKDIR /workspaces
|
|
RUN rm -rf tmp && \
|
|
mkdir network-experiment && \
|
|
mkdir build && \
|
|
mkdir install
|