-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 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
FROM continuumio/miniconda3
# Author and maintainer
MAINTAINER Kang Hu <[email protected]>
LABEL description="NeuralTE: an accurate approach for Transposable Element superfamily classification with multi-feature fusion" \
author="[email protected]"
ARG DNAME="NeuralTE"
RUN apt-get update && apt-get install unzip --yes && apt-get install less --yes && apt-get install curl --yes
# Download NeuralTE from Github
# RUN git clone https://github.com/CSU-KangHu/NeuralTE.git
# Download NeuralTE from Zenodo
RUN curl -LJO https://zenodo.org/records/10552099/files/CSU-KangHu/NeuralTE-v1.0.1.zip?download=1 && \
unzip NeuralTE-v1.0.1.zip && mv CSU-KangHu-NeuralTE-* /NeuralTE
RUN conda install mamba -c conda-forge -y
RUN cd /NeuralTE && chmod +x tools/* && 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", "NeuralTE", "/bin/bash", "-c"]
# avoid different perl version conflict
ENV PERL5LIB /
ENV PATH /opt/conda/envs/${DNAME}/bin:$PATH
USER root
WORKDIR /NeuralTE
RUN cd /NeuralTE
CMD ["bash"]