From f8743ab4267a3bb3aea2ed52d2d0904bfb23fbff Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 12 Feb 2024 15:02:22 -0800 Subject: [PATCH] Update to dockerfile submodule build --- scripts/Dockerfile.manager | 4 +++- scripts/Dockerfile.server | 4 +++- scripts/Dockerfile.worker | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/Dockerfile.manager b/scripts/Dockerfile.manager index 2e26a0e98e..c6550282b9 100644 --- a/scripts/Dockerfile.manager +++ b/scripts/Dockerfile.manager @@ -2,6 +2,8 @@ FROM magickml/magick:latest ARG GITHUB_TOKEN +COPY .git /app/.git +COPY .gitsubmodules /app/.gitsubmodules COPY . /app WORKDIR /app @@ -9,7 +11,7 @@ WORKDIR /app RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" # Clone the submodule -RUN git submodule update --init --recursive +RUN git submodule update --init --recursive portal/cloud RUN poetry install --no-interaction --no-ansi -vvv # RUN poetry install --no-root diff --git a/scripts/Dockerfile.server b/scripts/Dockerfile.server index 727feb46f4..6be2dafe48 100644 --- a/scripts/Dockerfile.server +++ b/scripts/Dockerfile.server @@ -2,6 +2,8 @@ FROM magickml/magick:latest ARG GITHUB_TOKEN +COPY .git /app/.git +COPY .gitsubmodules /app/.gitsubmodules COPY . /app WORKDIR /app @@ -9,7 +11,7 @@ WORKDIR /app RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" # Clone the submodule -RUN git submodule update --init --recursive +RUN git submodule update --init --recursive portal/cloud RUN poetry install --no-interaction --no-ansi -vvv # RUN poetry install --no-root diff --git a/scripts/Dockerfile.worker b/scripts/Dockerfile.worker index 8c76f757c4..060f9c647d 100644 --- a/scripts/Dockerfile.worker +++ b/scripts/Dockerfile.worker @@ -2,6 +2,8 @@ FROM magickml/magick:latest ARG GITHUB_TOKEN +COPY .git /app/.git +COPY .gitsubmodules /app/.gitsubmodules COPY . /app WORKDIR /app @@ -9,7 +11,7 @@ WORKDIR /app RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" # Clone the submodule -RUN git submodule update --init --recursive +RUN git submodule update --init --recursive portal/cloud RUN poetry install --no-interaction --no-ansi -vvv # RUN poetry install --no-root