-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.base
35 lines (28 loc) · 1.19 KB
/
Dockerfile.base
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
FROM gcc:latest
# cypraeno base development image
# VERSION: v0.2.1
# docker build -f Dockerfile.base -t connortbot/caitlyn-mcrt:base-vX.X.X .
# docker push connortbot/caitlyn-mcrt:base-vX.X.X
# Install required packages
RUN apt-get update && \
apt-get install -y curl zip unzip tar git wget valgrind
# Install CMake
ARG CMAKE_VERSION=3.26.0
RUN wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz && \
tar -xzvf cmake-${CMAKE_VERSION}.tar.gz && \
cd cmake-${CMAKE_VERSION} && \
./bootstrap && \
make && \
make install && \
cd .. && \
rm -rf cmake-${CMAKE_VERSION}*
# -rf : r recursive f force
# -xzvf : x extract -z gunzip (compress as extracting) -v verbose (list out extracts) -f file (follow cmake instructions)
# bootstrap : make ready for compilation
# Install Embree
ARG EMBREE_VERSION=4.3.0
ADD https://github.com/embree/embree/releases/download/v${EMBREE_VERSION}/embree-${EMBREE_VERSION}.x86_64.linux.tar.gz /opt
RUN cd /opt && \
tar xzf embree-${EMBREE_VERSION}.x86_64.linux.tar.gz
RUN echo "source embree-${EMBREE_VERSION}.x86_64.linux/embree-vars.sh" >> /root/.profile
WORKDIR /app