From 82c34d60aa8f082218e2af92a64753b374d661f0 Mon Sep 17 00:00:00 2001 From: David Minton Date: Fri, 11 Aug 2023 14:01:08 -0400 Subject: [PATCH] Added file copy lines to Dockerfile --- Dockerfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 211f9e323..a4455013f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,13 +19,29 @@ ENV SCRIPT_DIR="buildscripts" SHELL ["/bin/bash", "--login", "-c"] ENV SHELL="/bin/bash" WORKDIR /swiftest -COPY . ./ + +# Compile the dependencies +COPY ./buildscripts ./buildscripts/ RUN ${SCRIPT_DIR}/fetch_dependencies.sh RUN if [ "$BUILDIMAGE" = "intel/oneapi-hpckit:2023.1.0-devel-ubuntu20.04" ]; then \ + apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends m4 && \ + rm -rf /var/lib/apt/lists/* && \ ${SCRIPT_DIR}/build_dependencies.sh Intel; \ else \ ${SCRIPT_DIR}/make_build_environment.sh && \ echo "conda activate swiftest-build-env" >> ~/.bashrc && \ /bin/bash -lic "${SCRIPT_DIR}/build_dependencies.sh GNU"; \ fi + +# Compile the Swiftest project +COPY ./cmake/ ./cmake/ +COPY ./src/ ./src/ +COPY ./swiftest/ ./swiftest/ +COPY ./CMakeLists.txt ./ +COPY ./setup.py ./ +COPY ./environment.yml ./ +COPY ./pyproject.toml ./ +COPY ./requirements.txt ./ +COPY ./version.txt ./ RUN pip install . \ No newline at end of file