forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
48 lines (32 loc) · 1.29 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
43
44
45
FROM mambaorg/micromamba:1.5.8 as app
ARG IPA_VER="1.8.0"
SHELL [ "/bin/bash", "-c" ]
USER root
WORKDIR /
LABEL base.image="mambaorg/micromamba:1.5.8"
LABEL dockerfile.version="1"
LABEL software="IPA"
LABEL software.version="${IPA_VER}"
LABEL description="PacBio Improved Phased Assembler"
LABEL website="https://github.com/PacificBiosciences/pbipa"
LABEL license="https://github.com/PacificBiosciences/pbipa/blob/master/LICENSE.txt"
LABEL maintainer="Kutluhan Incekara"
LABEL maintainer.email="[email protected]"
RUN apt-get update && apt-get install -y --no-install-recommends \
time \
procps && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN micromamba install --name base -c conda-forge -c bioconda python=3.8 pbipa=${IPA_VER} && \
eval "$(micromamba shell hook --shell bash)" &&\
micromamba clean -a -y
ENV PATH="/opt/conda/bin/:${PATH}" \
LC_ALL=C.UTF-8
CMD [ "ipa", "--help" ]
WORKDIR /data
## Test ##
FROM app as test
RUN apt-get update && apt-get install -y wget
RUN ipa validate
RUN wget -q https://downloads.pacbcloud.com/public/dataset/2021-11-Microbial-96plex/demultiplexed-reads/m64004_210929_143746.bc2009.bam &&\
ipa local --njobs 1 --nthreads 4 -i m64004_210929_143746.bc2009.bam &&\
head -c 1000 RUN/assembly-results/final.a_ctg.fasta