-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (27 loc) · 874 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
33
34
35
#Pulling the base image
FROM cameroncruz/flask-nginx-uwsgi-miniconda:python3.6
# Create conda env (base image is built on python 3.6 and will have to migrate to 3.7 later)
RUN conda create --name myenv python=3.6
# Install the required dependencies
RUN /bin/bash -c ". activate myenv && \
conda config --add channels conda-forge && \
conda install -y \
scikit-learn \
numpy \
scipy \
rdkit \
wtforms \
ipython \
flask \
uwsgi"
# Copy custom supervisor config
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Copy application files
# The application to be served
COPY server/main.py /app/main.py
# Folder containing the styling
COPY server/static/ /app/static
# Folder containing the html
COPY server/templates/ /app/templates
# The trained machine learning model
copy server/model.pkl /app/model.pkl