-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile-rdkit
30 lines (26 loc) · 1.07 KB
/
Dockerfile-rdkit
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
FROM informaticsmatters/rdkit-python3-debian:Release_2020_09_1
LABEL maintainer="Tim Dudgeon<[email protected]>"
USER root
# install required packages
RUN apt-get -y update && apt-get -y install zip unzip procps
# Copy the pipeline implementation into the image
COPY src/python /opt/python
COPY requirements-rdkit.txt /root/
RUN pip install -e /opt/python
# And the pip packages from the project requirements
# NOTE: matplotlib is missing
RUN pip install -r /root/requirements-rdkit.txt
# The CMD is simply to run 'execute' in the WORKDIR.
# The user would normally mount a volume with their own execute
# script in it and then set the WORKDIR to the directory it's in.
# In its absence we just run the built-in 'execute',
# which is expected to echo some descriptive/helpful text.
#
# The default 'execute' relies on an ENV to name the pipeline it's in,
# which can be defined with the docker 'pipeline' build argument.
ARG pipeline=informaticsmatters/rdkit_pipelines:latest
ENV PIPELINE=$pipeline
WORKDIR /home/rdkit
COPY execute ./
RUN chmod +x ./execute
CMD ["./execute"]