tweak buildruntime input dir & clarify build script

This commit is contained in:
hosted-fornet 2024-09-24 08:38:29 -07:00
parent d4d644d5f2
commit c1e9f198b1
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Bind readonly & copy files in to avoid modifying host files
WORKDIR /usr/src/kinode
WORKDIR /input
# Set the default command to run the build script
# TODO: once build is idempotent, remove the `rm -rf` line

View File

@ -48,7 +48,6 @@ def build_and_move(feature, tmp_dir, architecture, os_name):
zip_path = os.path.join(tmp_dir, zip_name)
with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zipf:
zipf.write(dest_path, os.path.basename(dest_path))
os.chmod(zip_path, 0o664)
# Remove the original binary
os.remove(dest_path)