forked from bioconda/bioconda-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (22 loc) · 991 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
FROM condaforge/linux-anvil-comp7
RUN sudo -n yum install -y openssh-clients && \
sudo -n yum clean all && \
sudo -n rm -rf /var/cache/yum/*
RUN mkdir -p /tmp/repo/bioconda_utils/
COPY ./bioconda_utils/bioconda_utils-requirements.txt /tmp/repo/bioconda_utils/
ENV PATH="/opt/conda/bin:${PATH}"
RUN conda config --add channels defaults && \
conda config --add channels bioconda && \
conda config --add channels conda-forge && \
conda config --set auto_update_conda False
RUN : 'Make sure we get the (working) conda we want before installing the rest.' && \
sed -nE \
-e 's/\s*#.*$//' \
-e 's/^(conda([><!=~ ].+)?)$/\1/p' \
/tmp/repo/bioconda_utils/bioconda_utils-requirements.txt \
| xargs -r conda install -y
RUN conda install -y --file /tmp/repo/bioconda_utils/bioconda_utils-requirements.txt
RUN conda clean -y -it
COPY . /tmp/repo
RUN pip install /tmp/repo
ENTRYPOINT [ "/opt/conda/bin/tini", "--", "/tmp/repo/docker-entrypoint" ]