generated from InformaticsMatters/format-support-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (26 loc) · 949 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
# Base your contaier on something of use and,
# by convention, launch your run-time logic
# from a 'docker-entrypoint.sh' shell-script.
#
# Note: Regardeless of the user you have avalable at build-time,
# the container's actual user ID and group ID will be assigned by the
# Data Tier Manager ... so plan accordingly.
# Base image RDKit
ARG from_image=informaticsmatters/rdkit-python3-debian:Release_2019_09
FROM ${from_image}
# All formatter images MUST place their
# implementations (and expect to start) in /home/format-support
WORKDIR /home/format-support
# Add python libraries to environment
COPY requirements.txt ./
USER root
RUN python -m pip install --upgrade pip && \
pip install -r requirements.txt
# Copy source code in
COPY source/ ./source/
# Inject the entrypoint,
# making sure anyone can read and execute it.
COPY docker-entrypoint.sh ./
RUN chmod a+rx ./*.sh
# Start the formattter
CMD ./docker-entrypoint.sh