-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLipidSpaceRest.docker
42 lines (40 loc) · 1.3 KB
/
LipidSpaceRest.docker
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
FROM ubuntu:22.04 as build
MAINTAINER Nils Hoffmann <[email protected]>
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
libfontconfig1 \
qt6-base-dev \
qt6-base-dev-tools \
libqt6svg6-dev \
libopenblas-base \
libopenblas-dev \
libomp-dev \
mesa-common-dev \
libglu1-mesa-dev \
libc6 \
libstdc++6 \
openssl \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
VOLUME /tmp
COPY . /lipidspace
WORKDIR /lipidspace
RUN qmake6 LipidSpaceRest.pro
RUN make clean && make release -j$((`nproc`+1))
FROM ubuntu:22.04 as main
MAINTAINER Nils Hoffmann <[email protected]>
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
qt6-base-dev \
libopenblas-base \
libc6 \
libstdc++6 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /lipidspace/data /lipidspace/data
COPY --from=build /lipidspace/LipidSpaceRest /lipidspace/LipidSpaceRest
COPY --from=build /lipidspace/libraries/cppgoslin/bin/linux64/libcppGoslin.so /usr/local/lib/libcppGoslin.so
COPY --from=build /lipidspace/libraries/OpenXLSX/bin/linux64/libOpenXLSX.a /usr/local/lib/libOpenXLSX.a
RUN ldconfig
WORKDIR /lipidspace
EXPOSE 8888/tcp
ENTRYPOINT ["./LipidSpaceRest"]
#CMD ["--help"]