-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 786 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (21 loc) · 786 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
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential gfortran python3 python3-dev \
python3-pip libopenblas-dev parallel && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /source/python
COPY python/requirements.txt .
RUN pip install --no-cache-dir --no-warn-script-location -r requirements.txt
WORKDIR /source
COPY . .
RUN cp -a /source/docker-scripts/*.sh /usr/bin/
WORKDIR /source/build
ENV PYTHONPATH="/source/python:${PYTHONPATH}"
ENV PATH="/opt/diskvert/bin:/source/python/scripts:${PATH}"
ENV LD_LIBRARY_PATH="/opt/diskvert/lib:${LD_LIBRARY_PATH}"
ENV LDISKVERT_SO_PATH="/opt/diskvert/lib/libdiskvert.so"
RUN make clean && \
make && \
make install prefix=/opt/diskvert && \
make clean