-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
34 lines (26 loc) · 831 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
24
25
26
27
28
29
30
31
32
#set base image host
FROM python:3.8
#set working directory in container
WORKDIR /src
#install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.11.0/ncbi-blast-2.11.0+-x64-linux.tar.gz
RUN tar -zxvf ncbi-blast-2.11.0+-x64-linux.tar.gz
ENV PATH /src/ncbi-blast-2.11.0+/bin:$PATH
#copy required code and database files
COPY cluster_function_prediction.py .
COPY *.py .
COPY cluster_list.csv .
RUN mkdir feature_matrices/
RUN mkdir SSN/
RUN mkdir /src/temp_file/
COPY feature_matrices/ ./feature_matrices/
COPY SSN/ ./SSN/
#set up working directory for input and output
RUN chmod 777 /src
RUN chmod 777 /src/temp_file/
ENV PATH /src:$PATH
USER 1000:1000
ENTRYPOINT ["python", "/src/cluster_function_prediction.py"]
CMD ["--help"]