annotate pmlst/Dockerfile @ 0:140d4f9e1f20 draft default tip

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