-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
35 lines (26 loc) · 942 Bytes
/
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
# creates an image containing an installed instance of seqwish
# load base image
FROM ubuntu:18.04
# update system
RUN apt-get update > /dev/null
# install dependencies
RUN apt-get -qqy install zlib1g zlib1g-dev libomp-dev
# install build tools
RUN apt-get -qqy install build-essential software-properties-common && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
apt-get update > /dev/null && \
apt-get -qqy install gcc-snapshot && \
apt-get update > /dev/null && \
apt-get -qqy install gcc-8 g++-8 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && \
apt-get -qqy install cmake git
# copy over current directory to container
ADD . /seqwish
# set working directory
WORKDIR /seqwish
# build
RUN cmake -H. -Bbuild && cmake --build build -- -j3
# cleanup
RUN apt-get -qy autoremove
# add seqwish to the PATH
ENV PATH /seqwish/bin:$PATH