mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-24 05:59:42 -04:00
Dockerfile: only sync submodules if needed
This commit is contained in:
parent
749216738c
commit
01fb542fae
1 changed files with 6 additions and 3 deletions
|
@ -42,9 +42,12 @@ ENV PATH="/root/.cargo/bin:${PATH}"
|
|||
|
||||
COPY . .
|
||||
|
||||
# Update submodules recursively
|
||||
# Force update to handle any local changes in submodules
|
||||
RUN git submodule sync --recursive && git submodule update --init --recursive --force
|
||||
# Check that submodules are present (they should be initialized before building)
|
||||
# Run: git submodule update --init --recursive before building this Docker image
|
||||
RUN if [ ! -f "monero-sys/monero/CMakeLists.txt" ]; then \
|
||||
echo "ERROR: Submodules not initialized. Run 'git submodule update --init --recursive' before building Docker image."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
WORKDIR /build/swap
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue