-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (35 loc) · 1.27 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
39
40
41
42
43
44
45
46
47
48
49
FROM continuumio/miniconda3
LABEL base.image="docker_django_image"
#MAINTAINER Naveen Kumar Meena
WORKDIR /django_app
COPY requirements.txt .
USER root
RUN echo "source activate base " > ~/.bashrc
ENV PATH /opt/conda/bin:$PATH
RUN pip --version
RUN . /opt/conda/etc/profile.d/conda.sh && \
conda activate base && \
conda install -c plotly -y plotly plotly-orca && \
conda install -c conda-forge -y firefox kombu biopython zipp selenium matplotlib kiwisolver flower django-widget-tweaks zip poppler geckodriver celery && \
conda install -c anaconda pip redis six psutil scipy requests numpy pandas jsonschema psutil psycopg2 django beautifulsoup4 && \
#conda install -c auto django-chartjs && \
conda install -c bioconda -y hmmer wkhtmltopdf cd-hit && \
pip install django==2.2.7 redis imgkit pdfkit six django-chartjs && \
apt-get update && \
apt-get install -y python3-pip && \
#pip3 install six && \
#pip3 install Django && \
pip3 install -r requirements.txt && \
conda clean -y --all
# Plotly depedencies
RUN apt-get install -y --no-install-recommends \
wget \
xvfb \
libgtk2.0-0 \
libxtst6 \
libxss1 \
libgconf-2-4 \
libnss3 \
libasound2
EXPOSE 8000
COPY . .