Debian Codegraph @

Dockerfile

raw
1 FROM ubuntu:20.04
2
3 ENV DEBIAN_FRONTEND=noninteractive
4
5 ARG ARIBA_BUILD_DIR=/ariba
6 ARG DEPS_DIR=/bioinf-tools
7 ARG LOCALE_COUNTRY=en_GB
8
9 # Install locales
10 RUN apt-get update && apt-get install -y locales-all && rm -rf /var/lib/apt/lists/*
11 # Set a default locale.
12 ENV LANG=${LOCALE_COUNTRY}.UTF-8 \
13 LANGUAGE=${LOCALE_COUNTRY}:en
14
15 RUN mkdir -p $ARIBA_BUILD_DIR
16 COPY . $ARIBA_BUILD_DIR
17 RUN $ARIBA_BUILD_DIR/install_dependencies.sh $DEPS_DIR
18
19 # Need MPLBACKEND="agg" to make matplotlib work without X11, otherwise get the error
20 # _tkinter.TclError: no display name and no $DISPLAY environment variable
21 ENV ARIBA_BOWTIE2=$DEPS_DIR/bowtie2/bowtie2 \
22 ARIBA_CDHIT=cdhit-est \
23 MPLBACKEND="agg" \
24 PATH=$PATH:$DEPS_DIR/SPAdes/bin
25
26 # Install Ariba
27 RUN cd $ARIBA_BUILD_DIR \
28 && python3 -m pip install -r requirements.txt \
29 && python3 setup.py clean --all \
30 && python3 setup.py test \
31 && python3 setup.py install \
32 && rm -rf $ARIBA_BUILD_DIR
33
34 CMD ariba