forked from ISISComputingGroup/lewis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (16 loc) · 836 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM dmscid/lewis-depends:latest
# Copying this separately from the rest of lewis allows the
# pip install step to be cached until the requirements change.
# Rebuilding is faster and doesn't require an internet connection.
COPY requirements.txt /lewis/
# Install any missing PIP requirements, clear PIP cache, and delete all compiled Python objects
RUN pip install -r /lewis/requirements.txt && \
rm -rf /root/.cache/pip/* && \
find \( -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' +
# Lewis source is pulled in from current directory (note .dockerignore filters out some files)
COPY . /lewis
# Install lewis in-place and remove compiled Python objects
RUN pip install -e /lewis && \
rm -rf /root/.cache/pip/* && \
find \( -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' +
ENTRYPOINT ["/init.sh", "lewis"]