diff --git a/Dockerfile b/Dockerfile index 4eb94567..4ce3bc71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -187,34 +187,34 @@ RUN if [ "$include_neutronics" = "true" ] ; \ fi RUN if [ "$include_neutronics" = "true" ] ; \ - wget https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/master/Linux/Coreform-Cubit-master-b7317c72-Lin64.deb ; \ + then wget https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/master/Linux/Coreform-Cubit-master-b7317c72-Lin64.deb ; \ dpkg -i Coreform-Cubit-master-b7317c72-Lin64.deb ; \ fi -# COPY requirements.txt requirements.txt -# RUN pip install -r requirements.txt +COPY requirements.txt requirements.txt +RUN pip install -r requirements.txt -# ENV OPENMC_CROSS_SECTIONS=/root/nndc_hdf5/cross_sections.xml -# ENV PATH="/MOAB/build/bin:${PATH}" -# ENV PATH="/DAGMC/bin:${PATH}" +ENV OPENMC_CROSS_SECTIONS=/root/nndc_hdf5/cross_sections.xml +ENV PATH="/MOAB/build/bin:${PATH}" +ENV PATH="/DAGMC/bin:${PATH}" -# RUN mkdir /home/paramak -# EXPOSE 8888 -# WORKDIR /home/paramak +RUN mkdir /home/paramak +EXPOSE 8888 +WORKDIR /home/paramak -# FROM dependencies as final +FROM dependencies as final -# COPY run_tests.sh run_tests.sh -# COPY paramak paramak/ -# COPY examples examples/ -# COPY setup.py setup.py -# COPY tests tests/ -# COPY README.md README.md +COPY run_tests.sh run_tests.sh +COPY paramak paramak/ +COPY examples examples/ +COPY setup.py setup.py +COPY tests tests/ +COPY README.md README.md -# # using setup.py instead of pip due to https://github.com/pypa/pip/issues/5816 -# RUN python setup.py install +# using setup.py instead of pip due to https://github.com/pypa/pip/issues/5816 +RUN python setup.py install -# # this helps prevent the kernal failing -# RUN echo "#!/bin/bash\n\njupyter lab --notebook-dir=/home/paramak --port=8888 --no-browser --ip=0.0.0.0 --allow-root" >> /home/paramak/docker-cmd.sh -# CMD bash /home/paramak/docker-cmd.sh +# this helps prevent the kernal failing +RUN echo "#!/bin/bash\n\njupyter lab --notebook-dir=/home/paramak --port=8888 --no-browser --ip=0.0.0.0 --allow-root" >> /home/paramak/docker-cmd.sh +CMD bash /home/paramak/docker-cmd.sh