forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (38 loc) · 1.42 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
46
47
48
49
50
ARG SAMCLIP_VER="0.4.0"
FROM ubuntu:jammy as app
ARG SAMCLIP_VER
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="samclip"
LABEL software.version="${SAMCLIP_VER}"
LABEL description="Samclip: filter SAM file for soft and hard clipped alignments"
LABEL website="https://github.com/tseemann/samclip"
LABEL license="https://github.com/tseemann/samclip/blob/master/LICENSE"
LABEL maintainer="Dhatri Badri"
LABEL maintainer.email="[email protected]"
# install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget \
software-properties-common \
perl && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# install samclip
RUN wget https://github.com/tseemann/samclip/archive/refs/tags/v${SAMCLIP_VER}.tar.gz && \
tar -xvf v${SAMCLIP_VER}.tar.gz && \
rm v${SAMCLIP_VER}.tar.gz && \
chmod +x /samclip-${SAMCLIP_VER}/samclip && \
mkdir /data
ENV PATH="${PATH}:/samclip-${SAMCLIP_VER}/" \
LC_ALL=C
CMD [ "samclip", "--help" ]
WORKDIR /data
FROM app as test
RUN samclip --help && \
samclip --version
WORKDIR /test
# Run test using samclip executable
RUN wget https://raw.githubusercontent.com/tseemann/samclip/master/test.fna && \
wget https://raw.githubusercontent.com/tseemann/samclip/master/test.sam && \
wget https://raw.githubusercontent.com/tseemann/samclip/master/test.fna.fai && \
samclip --ref test.fna < test.sam > out.sam