| 1 |
# Provide an easy-to-reproduce environment in which to test full Python functionality. |
| 2 |
|
| 3 |
# Run with default command and map the http port to the host. |
| 4 |
# |
| 5 |
# docker run --rm -ti -p 8888:8888 gmxapi/notebook |
| 6 |
# |
| 7 |
# Building: |
| 8 |
# |
| 9 |
# Requires Docker 17.05 or higher. |
| 10 |
# |
| 11 |
# Use this (the "docker" directory) as the context directory. |
| 12 |
# |
| 13 |
# docker build -t gmxapi/notebook -f notebook.dockerfile . |
| 14 |
# |
| 15 |
|
| 16 |
ARG REF=latest |
| 17 |
FROM gmxapi/ci-mpich:$REF |
| 18 |
|
| 19 |
RUN . $VENV/bin/activate && \ |
| 20 |
pip install --no-cache-dir jupyter |
| 21 |
|
| 22 |
ADD --chown=testing:testing notebook /docker_entry_points |
| 23 |
|
| 24 |
CMD ["notebook"] |