forked from navduhan/pyseqrna
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile_old
More file actions
63 lines (45 loc) · 1.75 KB
/
dockerfile_old
File metadata and controls
63 lines (45 loc) · 1.75 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Use the official Python image as base
FROM ubuntu:22.04
FROM python:3.8
# Author: Naveen Duhan
# Title: Dockerfile for pySeqRNA
# Install dependencies
RUN apt-get update && apt-get install -y wget git bzip2 bash curl
# Install Miniconda
RUN apt-get update && apt-get install -y wget && \
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh && \
bash miniconda.sh -b -p /usr/local/miniconda && \
rm miniconda.sh
# Add Miniconda to PATH
ENV PATH="/usr/local/miniconda/bin:${PATH}"
# Initialize conda
RUN conda init bash
# Install Git
RUN apt-get install -y git
# Clone pySeqRNA repository
RUN git clone https://github.com/navduhan/pyseqrna.git
# Navigate to the pySeqRNA directory
WORKDIR /pyseqrna
# Create and activate a Conda environment
RUN conda env create -f pyseqrna_environment.yml && \
echo "conda activate pyseqrna-0.2" >> ~/.bashrc
# Install pySeqRNA
RUN bash -c "source /usr/local/miniconda/etc/profile.d/conda.sh && \
conda activate pyseqrna-0.2 && \
pip install ."
# Expose port if needed
# EXPOSE 80
WORKDIR /home
# Create data and output directories
RUN mkdir /data /output
# Command to run when the container starts
CMD ["bash"]
# docker build --platform=linux/amd64 -t pyseqrna .
#docker run -it --rm pyseqrna
##################################################################
## ##
## Written by Naveen Duhan (naveen.duhan@outlook.com) ##
## Kaundal Bioinformatics Lab, Utah State University ##
## Released under the terms of GNU General Public Licence v3 ##
## ##
##################################################################