-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (41 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
49 lines (41 loc) · 1.16 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
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:22.04
# ARG CUDA_ARCHITECTURES=native
# Prevent stop building ubuntu at time zone selection.
ENV DEBIAN_FRONTEND=noninteractive
# Prepare an empty machine for building.
RUN apt-get update && \
apt-get install -y \
sudo \
git \
ccache \
cmake \
unzip \
ninja-build \
build-essential \
gfortran \
ripgrep \
fd-find \
python3 \
python3-pip \
intel-mkl \
libatlas-base-dev \
liblapack-dev \
libblas-dev
# Install python dependencies for build_dependencies.py
RUN pip3 install --upgrade pip
RUN pip3 install gitpython pyyaml
## For AMD CPUs using intel-mkl
ENV MKL_DEBUG_CPU_TYPE=5
## Copy repo to container, then build dependencies
COPY . /cpp-cv-project/
WORKDIR /cpp-cv-project/
RUN chmod +x build_dependencies.py && \
./build_dependencies.py --d
# Build the main project, check if dependencies are correctly installed
RUN cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug
RUN cmake --build ./build
RUN ./build/bin/solution
# Provide folders for mounting data and documents
WORKDIR /
RUN mkdir -p /Documents/ /data/
CMD ["/bin/bash"]