Skip to content

Commit

Permalink
Update to dockerfile submodule build
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Feb 12, 2024
1 parent 9e28f21 commit f8743ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/Dockerfile.manager
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ FROM magickml/magick:latest

ARG GITHUB_TOKEN

COPY .git /app/.git
COPY .gitsubmodules /app/.gitsubmodules
COPY . /app
WORKDIR /app

# Configure git to use the token
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
Expand Down
4 changes: 3 additions & 1 deletion scripts/Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ FROM magickml/magick:latest

ARG GITHUB_TOKEN

COPY .git /app/.git
COPY .gitsubmodules /app/.gitsubmodules
COPY . /app
WORKDIR /app

# Configure git to use the token
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
Expand Down
4 changes: 3 additions & 1 deletion scripts/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ FROM magickml/magick:latest

ARG GITHUB_TOKEN

COPY .git /app/.git
COPY .gitsubmodules /app/.gitsubmodules
COPY . /app
WORKDIR /app

# Configure git to use the token
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
Expand Down

0 comments on commit f8743ab

Please sign in to comment.