Skip to content

Commit

Permalink
added then to if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Apr 4, 2021
1 parent b6d1ac0 commit d23cc04
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d23cc04

Please sign in to comment.