-
Notifications
You must be signed in to change notification settings - Fork 125
/
Dockerfile
42 lines (34 loc) · 1.39 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
42
FROM ubuntu:focal as app
# to make it easier to upgrade for new versions; ARG variables only persist during docker image build time
ARG SPADES_VER="3.15.5"
LABEL base.image="ubuntu:focal"
LABEL dockerfile.version="2"
LABEL software="SPAdes"
LABEL software.version="${SPADES_VER}"
LABEL description="de novo DBG genome assembler"
LABEL website="https://github.com/ablab/spades"
LABEL license="https://github.com/ablab/spades/blob/v3.15.3/assembler/LICENSE"
LABEL maintainer="Curtis Kapsak"
LABEL maintainer.email="[email protected]"
# install dependencies; cleanup apt garbage
# python v3.8.10 is installed here; point 'python' to python3
RUN apt-get update && apt-get install --no-install-recommends -y python3 \
python3-distutils \
wget \
pigz \
ca-certificates && \
apt-get autoclean && rm -rf /var/lib/apt/lists/* && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 10
# install SPAdes binary; make /data
RUN wget http://cab.spbu.ru/files/release${SPADES_VER}/SPAdes-${SPADES_VER}-Linux.tar.gz && \
tar -xzf SPAdes-${SPADES_VER}-Linux.tar.gz && \
rm -r SPAdes-${SPADES_VER}-Linux.tar.gz && \
mkdir /data
# set PATH and locale settings for singularity
ENV LC_ALL=C.UTF-8 \
PATH="${PATH}:/SPAdes-${SPADES_VER}-Linux/bin"
WORKDIR /data
# test layer
FROM app as test
# print version and run the supplied test flag
RUN spades.py --version && spades.py --test && spades.py --help