forked from sanger-pathogens/ariba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 963 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
30
31
32
33
34
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ARG ARIBA_BUILD_DIR=/ariba
ARG DEPS_DIR=/bioinf-tools
ARG LOCALE_COUNTRY=en_GB
# Install locales
RUN apt-get update && apt-get install -y locales-all && rm -rf /var/lib/apt/lists/*
# Set a default locale.
ENV LANG=${LOCALE_COUNTRY}.UTF-8 \
LANGUAGE=${LOCALE_COUNTRY}:en
RUN mkdir -p $ARIBA_BUILD_DIR
COPY . $ARIBA_BUILD_DIR
RUN $ARIBA_BUILD_DIR/install_dependencies.sh $DEPS_DIR
# Need MPLBACKEND="agg" to make matplotlib work without X11, otherwise get the error
# _tkinter.TclError: no display name and no $DISPLAY environment variable
ENV ARIBA_BOWTIE2=$DEPS_DIR/bowtie2/bowtie2 \
ARIBA_CDHIT=cdhit-est \
MPLBACKEND="agg" \
PATH=$PATH:$DEPS_DIR/SPAdes/bin
# Install Ariba
RUN cd $ARIBA_BUILD_DIR \
&& python3 -m pip install -r requirements.txt \
&& python3 setup.py clean --all \
&& python3 setup.py test \
&& python3 setup.py install \
&& rm -rf $ARIBA_BUILD_DIR
CMD ariba