forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (45 loc) · 1.78 KB
/
Copy pathDockerfile
File metadata and controls
58 lines (45 loc) · 1.78 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
# FROM defines the base docker image to start from. This command has to come first in the file
FROM staphb/samtools:1.23 AS samtools
FROM ubuntu:noble AS app
ARG BOWTIE2VER=2.5.5
# metadata (there are a few other labels you can add, these are optional but preferred!)
LABEL base.image="ubuntu:noble"
LABEL dockerfile.version="1"
LABEL software="Bowtie2"
LABEL software.version=${BOWTIE2VER}
LABEL description="Genome assembler using a reference and mapping"
LABEL website="https://github.com/BenLangmead/bowtie2"
LABEL documentation="http://bowtie-bio.sourceforge.net/bowtie2/manual.shtml"
LABEL maintainer="Holly Halstead"
LABEL maintainer.email="holly.halstead@doh.wa.gov"
# install dependencies, cleanup apt garbage.
RUN apt-get update && apt-get install -y --no-install-recommends\
perl \
zlib1g \
libncurses6 \
bzip2 \
liblzma-dev \
bedtools \
unzip \
wget \
ca-certificates \
python3 && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# copy in samtools executables from builder stage
COPY --from=samtools /usr/local/bin/* /usr/local/bin/
# download, unpack Bowtie2
RUN wget -q https://github.com/BenLangmead/bowtie2/releases/download/v${BOWTIE2VER}/bowtie2-${BOWTIE2VER}-linux-x86_64.zip && \
unzip bowtie2-${BOWTIE2VER}-linux-x86_64.zip && \
rm bowtie2-${BOWTIE2VER}-linux-x86_64.zip
ENV PATH="/bowtie2-${BOWTIE2VER}-linux-x86_64:$PATH"
# Shell format
# CMD bowtie2 -h
CMD ["bowtie2", "-h"]
# set working directory
WORKDIR /data
FROM app AS test
RUN bowtie2 -h
RUN wget -q https://raw.githubusercontent.com/BenLangmead/bowtie2/master/example/reads/longreads.fq && \
wget -q https://raw.githubusercontent.com/BenLangmead/bowtie2/master/example/reference/lambda_virus.fa && \
bowtie2-build lambda_virus.fa lambda_virus && \
bowtie2 -x lambda_virus -U longreads.fq