-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
33 lines (23 loc) · 968 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
# define our environment
# FROM jcrist/alpine-conda:4.6.8
FROM continuumio/miniconda3:4.6.14
# install rdkit and bottle
RUN /opt/conda/bin/conda install --yes --freeze-installed -c conda-forge rdkit bottle hdbscan && /opt/conda/bin/conda clean -afy
# can probably be removed in a future version: https://github.com/scikit-learn-contrib/hdbscan/issues/436
RUN /opt/conda/bin/conda install joblib==0.17.0
RUN pip install bottle-beaker
# define target folder
WORKDIR /app
# copy everything from our backend to our app folder
COPY backend /app/
# copy the pre-built front-end
#TODO the docker could build and copy
COPY dist/ /app/dist/
# Create temp-files folder and copy all .sdf into it
COPY backend/*.sdf /app/temp-files/
EXPOSE 8080
# run server
CMD ["python", "-u", "backend-cime-dist.py"] # "-u" is needed such that there will be console output provided by docker
# Running
# docker build -f Dockerfile -t cime .
# docker run -d -p 8080:8080 --detach cime