-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (29 loc) · 1.13 KB
/
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
35
36
37
38
FROM continuumio/miniconda3:4.10.3
# Set Bash as default shell
SHELL [ "/bin/bash", "--login", "-c" ]
# Install libraries needed for the GUI
RUN apt-get update -q && apt-get install yad xdg-utils gedit evince dbus-x11 -q -y && apt-get clean
# Install conda packages
COPY ./conda/environment.yml /opt
RUN conda env update -n base -f opt/environment.yml --quiet \
&& conda clean -afy \
&& find /opt/conda/ -follow -type f -name '*.a' -delete \
&& find /opt/conda/ -follow -type f -name '*.pyc' -delete \
&& find /opt/conda/ -follow -type f -name '*.js.map' -delete
# Copy code to container
COPY ./transposonmapper /opt/src/transposonmapper
COPY ./satay /opt/satay
COPY setup.py README.rst /opt/src/
# Install the transposonmapper package inside the container
WORKDIR /opt/src/
RUN pip install -e .[dev]
# Set environment variables
ENV adapters=/opt/conda/bbtools/lib/resources/adapters.fa \
bbduk=/opt/conda/bbtools/lib/bbduk.sh \
satay=/opt/satay/satay.sh
# Avoid accessibility warning from yad
ENV NO_AT_BRIDGE=1
# Set /data as default directory
WORKDIR /data
# Default command when running the container
CMD bash ${satay}