Skip to content

Commit

Permalink
updated dockerfile to remove tests and change path to new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zenkavi committed Aug 1, 2023
1 parent 04e0727 commit 9ea8045
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

# HSSM image found at zenkavi/hssm
# To build using this image
# docker build -t zenkavi/hssm:0.0.3 -f Dockerfile .

# HSSM images built with this Dockerfile can be found at zenkavi/hssm
# docker pull zenkavi/hssm

ARG BASE_CONTAINER=jupyter/minimal-notebook:python-3.9
FROM $BASE_CONTAINER

LABEL maintainer="Zeynep Enkavi <[email protected]>"

USER root

# ffmpeg for matplotlib anim & dvipng for latex labels
Expand Down Expand Up @@ -54,13 +55,10 @@ USER $NB_UID
WORKDIR $HOME

# Create a folder for example
RUN mkdir /home/$NB_USER/tutorial_notebooks && \
mkdir /home/$NB_USER/tutorial_notebooks/no_execute && \
RUN mkdir -p /home/$NB_USER/docs/tutorials && \
mkdir -p /home/$NB_USER/docs/getting_started && \
fix-permissions /home/$NB_USER

# Copy example data and scripts to the example folder
COPY /docs/tutorial_notebooks /home/${NB_USER}/tutorial_notebooks

# Copy tests and run them
COPY /tests /opt/conda/lib/python3.9/site-packages/hssm/tests
RUN python -m unittest discover -s /opt/conda/lib/python3.9/site-packages/hssm/tests -p 'test_*.py'
COPY /docs/tutorials /home/${NB_USER}/docs/tutorials
COPY /docs/getting_started /home/${NB_USER}/docs/getting_started

0 comments on commit 9ea8045

Please sign in to comment.