forked from sanger-pathogens/gffmunger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 1.04 KB
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:bionic
MAINTAINER ts24@sanger.ac.uk
ENV BASHRC /etc/bash.bashrc
ENV BUILD_DIR /gffmunger-build
ENV CONF_DIR /etc/gffmunger
RUN apt-get update -qq
RUN apt-get install -y locales genometools git python3 python-setuptools python3-biopython python3-pip
# Configure locales.
# Select a specific locale by passing the LANG variable into docker run.
RUN cp /usr/share/i18n/SUPPORTED /etc/locale.gen
RUN locale-gen
# RUN pip3 install dumper gffutils pyyaml
RUN grep GENOMETOOLS_PATH ${BASHRC} || bash -c "echo; echo 'export GENOMETOOLS_PATH=\"/usr/bin/gt\"'; echo" >> ${BASHRC}
COPY . ${BUILD_DIR}
COPY ./*config.yml ${CONF_DIR}/
RUN pip3 install ${BUILD_DIR} && \
bash -c "cd ${BUILD_DIR} && . ./run_tests.sh --verbose"
VOLUME /var/data
CMD echo "Usage: docker run -v \`pwd\`:/var/data -it <IMAGE_NAME> bash" && \
echo "" && \
echo "This will place you in a shell with your current working directory accessible as /var/data." && \
echo "For help, type" && \
echo " gffmunger --help"