-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
27 lines (23 loc) · 1.01 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
from continuumio/miniconda3:4.8.2
WORKDIR /tmp
RUN conda install pycryptosat \
&& conda config --set sat_solver pycryptosat \
&& conda config --set channel_priority strict
ENV NCOV ncov-qc
ADD workflow/envs/environment.yml environment.yml
RUN conda env create --name $NCOV -f environment.yml \
&& rm -rf /opt/conda/pkgs/
# make sure that container is not polluted by ~/.local install
ENV PYTHONNOUSERSITE=1
RUN mkdir -p /app/workdir
ADD workflow /app
VOLUME /app/workdir
WORKDIR /app/workdir
# To be set with "singularity {shell,exec}"
RUN mkdir -p /.singularity.d/env \
&& echo ". /etc/profile.d/conda.sh" >> /etc/bash.bashrc \
&& echo ". /etc/profile.d/conda.sh" >> /.singularity.d/env/999-conda.sh \
&& echo "conda activate $NCOV 2>/dev/null" >> /etc/bash.bashrc \
&& echo "conda activate $NCOV 2>/dev/null" >> /.singularity.d/env/999-conda.sh \
&& rm /root/.bashrc && rm /bin/sh && ln -s /bin/bash /bin/sh
#docker build --tag ncov-tools . && singularity build ncov_tools.simg docker-daemon://ncov-tools:latest