-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (49 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
55 lines (49 loc) · 1.3 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
50
51
52
53
54
55
# Use Ubuntu 24.04 as the base image
FROM ubuntu:24.04
ENV TZ=UTC
# Install necessary packages
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends --fix-missing \
apt-utils \
build-essential \
bash \
wget \
git \
curl \
ssh \
subversion \
tar \
unzip \
patch \
gzip \
bzip2 \
file \
gnupg \
coreutils \
mercurial \
nano \
pkg-config \
tree \
flex \
automake \
make \
cmake \
cmake-curses-gui \
python3.11 python3-pip cxxtest libeigen3-dev && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update -y && apt-get upgrade -y && \
apt-get install -y --no-install-recommends --fix-missing \
libopenblas-dev && \
rm -rf /var/lib/apt/lists/*
# Clone and install libxsmm
RUN git clone https://github.com/hfp/libxsmm.git && \
cd libxsmm && \
make && \
make install PREFIX=/usr/local
# Set the working directory in the container
WORKDIR /app
# Copy the application code to the container
COPY . /app
# Install the application
RUN pip install . --break-system-packages