annotate pmlst/Dockerfile @ 0:cfab64885f66 draft default tip

Uploaded
author dcouvin
date Mon, 06 Sep 2021 18:27:45 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
1 FROM debian:stretch
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
2
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
3 ENV DEBIAN_FRONTEND noninteractive
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
4
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
5 ### RUN set -ex; \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
6
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
7 RUN apt-get update -qq; \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
8 apt-get install -y -qq git \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
9 apt-utils \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
10 wget \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
11 python3-pip \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
12 ncbi-blast+ \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
13 libz-dev \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
14 ; \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
15 rm -rf /var/cache/apt/* /var/lib/apt/lists/*;
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
16
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
17 ENV DEBIAN_FRONTEND Teletype
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
18
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
19 # Install python dependencies
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
20 RUN pip3 install -U biopython==1.73 tabulate cgecore==1.3.2;
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
21
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
22 # Install kma
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
23 RUN git clone --branch 1.0.1 --depth 1 https://bitbucket.org/genomicepidemiology/kma.git; \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
24 cd kma && make; \
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
25 mv kma* /bin/
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
26
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
27 COPY pmlst.py /usr/src/pmlst.py
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
28
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
29 RUN chmod 755 /usr/src/pmlst.py;
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
30
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
31 ENV PATH $PATH:/usr/src
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
32 # Setup .bashrc file for convenience during debugging
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
33 RUN echo "alias ls='ls -h --color=tty'\n"\
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
34 "alias ll='ls -lrt'\n"\
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
35 "alias l='less'\n"\
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
36 "alias du='du -hP --max-depth=1'\n"\
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
37 "alias cwd='readlink -f .'\n"\
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
38 "PATH=$PATH\n">> ~/.bashrc
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
39
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
40 WORKDIR /workdir
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
41
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
42 # Execute program when running the container
cfab64885f66 Uploaded
dcouvin
parents:
diff changeset
43 ENTRYPOINT ["/usr/src/pmlst.py"]