-
Notifications
You must be signed in to change notification settings - Fork 37
/
Dockerfile
35 lines (29 loc) · 742 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
ARG ARCH="amd64"
FROM ${ARCH}/ubuntu:impish
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/London
# Get dependencies
RUN apt-get -y update \
&& apt-get -y install \
build-essential \
libboost-all-dev \
libgmp-dev \
cmake \
libhts-dev \
python3-pip \
git \
&& pip3 install distro
# Install Octopus
ARG THREADS=4
ARG CPU=haswell
COPY . /opt/octopus
RUN /opt/octopus/scripts/install.py \
--threads $THREADS \
--architecture $CPU
# Cleanup git - only needed during install for commit info
RUN apt-get purge -y git \
&& rm -r /opt/octopus/.git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/opt/octopus/bin:${PATH}"
ENTRYPOINT ["octopus"]