-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
41 lines (33 loc) · 1.47 KB
/
Dockerfile
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:18.04
From debian:10
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /workspaces
# use the official package
ADD https://www.tbi.univie.ac.at/RNA/download/debian/debian_10/viennarna_2.4.15-1_amd64.deb .
ADD https://www.tbi.univie.ac.at/RNA/download/debian/debian_10/viennarna-dev_2.4.15-1_amd64.deb .
# ADD https://www.tbi.univie.ac.at/RNA/download/debian/debian_10/python3-rna_2.4.15-1_amd64.deb .
RUN apt-get update \
&& apt-get -y install build-essential wget cmake \
pkg-config \
libboost-dev libboost-program-options-dev \
libboost-random-dev libboost-system-dev \
&& apt-get -y install ./*.deb \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -f *.deb \
&& rm -rf /var/lib/apt/lists/*
# build from the source
# RUN wget -q https://www.tbi.univie.ac.at/RNA/download/sourcecode/2_4_x/ViennaRNA-2.4.14.tar.gz \
# && tar zxvf ViennaRNA-2.4.14.tar.gz \
# && cd ViennaRNA-2.4.14 \
# && ./configure --without-perl --without-python --without-python3 --without-forester --without-rnalocmin \
# && make && make install \
# && cd .. && rm -rf ViennaRNA-2.4.14 ViennaRNA-2.4.14.tar.gz
# From satoken/vsc-viennarna-dev:latest
# WORKDIR /workspaces
COPY . .
RUN rm -rf build && mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
#&& cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-static' -DCMAKE_FIND_LIBRARY_SUFFIXES='.a' .. \ # static link
&& make && make install