Replaced cp by rsync to keep .git folder for workflow

This commit is contained in:
2025-07-16 13:45:33 +02:00
parent 7aed3dd8c2
commit 94796efae8

View File

@@ -9,6 +9,7 @@ RUN pacman -Syu --noconfirm \
python-setuptools \
alsa-lib \
go \
rsync \
&& pacman -Scc --noconfirm
# 2) Stub out systemctl & yay so post-install hooks and AUR calls never fail
@@ -51,9 +52,7 @@ RUN pkgmgr install cymais --clone-mode https
# 8) Override installed CyMaIS with local source and clean ignored files
RUN CMAIS_PATH=$(pkgmgr path cymais) && \
rm -rf "$CMAIS_PATH"/* && \
cp -R /opt/cymais-src/* "$CMAIS_PATH"/ && \
cd "$CMAIS_PATH" && \
make clean
rsync -a --delete --exclude='.git' /opt/cymais-src/ "$CMAIS_PATH"/
# 9) Symlink the cymais script into /usr/local/bin so ENTRYPOINT works
RUN CMAIS_PATH=$(pkgmgr path cymais) && \