mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-05-22 12:35:22 +00:00
Refactor Dockerfile to use external build script
This commit is contained in:
@@ -35,9 +35,6 @@ WORKDIR /home/build/project
|
||||
COPY --chown=build:build packaging/arch /home/build/project/
|
||||
|
||||
# Default command to build the package
|
||||
# We use a script to handle potential permission issues with volume mounts
|
||||
RUN echo '#!/bin/bash\nsudo chown -R build:build /home/build/project\ncd /home/build/project\nsudo -u build makepkg -s --noconfirm' > /usr/local/bin/build.sh && \
|
||||
chmod +x /usr/local/bin/build.sh
|
||||
|
||||
CMD ["/usr/local/bin/build.sh"]
|
||||
# The script is provided by the mounted volume or copied during build
|
||||
CMD ["/bin/bash", "/home/build/project/build.sh"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user