Skip to content

Commit

Permalink
update dependency installs in dockerfile (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktangsali authored Sep 21, 2023
1 parent 6298feb commit 450c67d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ RUN apt-get update && \

ENV _CUDA_COMPAT_TIMEOUT=90

# Install other dependencies
RUN pip install "h5py>=3.7.0" "mpi4py>=3.1.4" "netcdf4>=1.6.3" "ruamel.yaml>=0.17.22" "scikit-learn>=1.0.2"
# TODO remove benchy dependency
RUN pip install git+https://github.com/romerojosh/benchy.git
# TODO use torch-harmonics pip package after the upgrade
Expand Down Expand Up @@ -94,7 +96,7 @@ FROM builder as ci
ARG TARGETPLATFORM

COPY . /modulus/
RUN cd /modulus/ && pip install -e .[all] && pip uninstall nvidia-modulus -y && rm -rf /modulus/
RUN cd /modulus/ && pip install -e . && pip uninstall nvidia-modulus -y && rm -rf /modulus/
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
echo "Installing tensorflow and warp-lang for: $TARGETPLATFORM" && \
pip install "tensorflow==2.9.0" "warp-lang>=0.6.0"; \
Expand All @@ -106,7 +108,7 @@ RUN pip install "black==22.10.0" "interrogate==1.5.0" "coverage==6.5.0" "protobu
# Deployment image
FROM builder as deploy
COPY . /modulus/
RUN cd /modulus/ && pip install .[all]
RUN cd /modulus/ && pip install .
RUN pip install "protobuf==3.20.3"

# Clean up
Expand Down

0 comments on commit 450c67d

Please sign in to comment.