mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-22 03:04:35 +03:00
tweak buildruntime input dir & clarify build script
This commit is contained in:
parent
d4d644d5f2
commit
c1e9f198b1
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user