forked from CSU-KangHu/HiTE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (27 loc) · 1.31 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
# Author and maintainer
MAINTAINER Kang Hu <[email protected]>
LABEL description="HiTE: A fast and accurate dynamic boundary adjustment approach for full-length Transposable Elements detection and annotation in Genome Assemblies" \
author="[email protected]"
ARG DNAME="HiTE"
RUN apt-get update && apt-get install unzip --yes && apt-get install less --yes && apt-get install curl --yes
# Download HiTE from Github
# RUN git clone https://github.com/CSU-KangHu/HiTE.git
# use local HiTE
COPY HiTE-master.zip /HiTE-master.zip
RUN cd / && unzip HiTE-master.zip && mv HiTE-master /HiTE
# Download HiTE from Zenodo
#RUN curl -LJO https://zenodo.org/records/10574301/files/CSU-KangHu/HiTE-v.3.1.1.zip && \
# unzip HiTE-v.3.1.1.zip && mv CSU-KangHu-HiTE-* /HiTE
RUN conda install mamba -c conda-forge -y
RUN cd /HiTE && chmod +x tools/* bin/NeuralTE/tools/* bin/LTR_FINDER_parallel-master/bin/LTR_FINDER.x86_64-1.0.7/ltr_finder && mamba env create --name ${DNAME} --file=environment.yml && conda clean -a
# Make RUN commands use the new environment
# name need to be the same with the above ${DNAME}
SHELL ["conda", "run", "-n", "HiTE", "/bin/bash", "-c"]
# avoid different perl version conflict
ENV PERL5LIB /
ENV PATH /opt/conda/envs/${DNAME}/bin:$PATH
USER root
WORKDIR /HiTE
RUN cd /HiTE
CMD ["bash"]