-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 699 Bytes
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ubuntu:24.04
LABEL authors="james"
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
cmake \
git \
python3 \
python3-pip \
python3-venv \
lcov \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# Create a venv for Conan
RUN python3 -m venv /opt/venv
# Activate venv
ENV PATH="/opt/venv/bin:$PATH"
# Install Conan inside the venv
RUN pip install --upgrade pip \
&& pip install conan
# Configure Conan default profile
RUN conan profile detect --force
# Set working dir and copy project files
WORKDIR /app
COPY --exclude=build/ . .
# Build with Conan
RUN conan build . --build=missing -s build_type=Release
CMD ["/bin/bash"]