forked from reineckef/read-trimmer
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
30 lines (23 loc) · 809 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
FROM python:stretch
# Paired end trimmer for QIASeq DNA/RNA reads
#
# This Dockerfile will create an image that will run
# a git pull & install for each invocation of the
# trimming tool. That is to ensure the latest code
# is being used.
ARG repository=qiaseq
ARG branch=master
# Installation of requirements
RUN pip3 install edlib Cython
# Initial installation of the trimming code
RUN git clone -b ${branch} https://github.com/${repository}/read-trimmer
# install the wrapper script that will run updates before the actual trimming
RUN echo '#!/bin/bash\n\
echo "# [$(date)] Running code updates ..."\n\
cd /read-trimmer\n\
git pull origin ${branch}\n\
echo "# [$(date)] Code updated."\n\
python3 /read-trimmer/trimmer/run.py "$@"' > /trim
RUN chmod +x /trim
ENTRYPOINT [ "/trim" ]
CMD [ "--help" ]