-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (32 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
37 lines (32 loc) · 1.15 KB
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
# Use an official Ubuntu base image
FROM ubuntu:devel
WORKDIR /workspace
# Install required packages and CMake
RUN apt-get update && \
apt-get install -y \
build-essential \
python3-dev \
python3-venv \
python3-pip \
git \
git-lfs \
curl \
&& curl -L https://cmake.org/files/v3.29/cmake-3.29.6-linux-x86_64.tar.gz --output /tmp/cmake-3.29.6.tar.gz \
# Extract CMake tarball and install it
&& tar -xzf /tmp/cmake-3.29.6.tar.gz -C /tmp/ \
&& cp -r /tmp/cmake-3.29.6-linux-x86_64/bin /usr/local/ \
&& cp -r /tmp/cmake-3.29.6-linux-x86_64/share /usr/local/ \
&& cp -r /tmp/cmake-3.29.6-linux-x86_64/doc /usr/local/ \
# Clean up temporary files to reduce image size
&& rm -rf /tmp/cmake-3.29.6* \
# Clean up apt cache to reduce image size
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy in project files required for building
COPY ./ ./
# Configure submodules
RUN git config --global --add safe.directory "*" && \
git submodule init && \
git submodule update
# Set the script to run when the container starts
ENTRYPOINT ["/workspace/build.bash"]