Skip to content

Commit

Permalink
fix: copy build contents and adjust permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
drbh committed Feb 27, 2025
1 parent 5062dad commit a9b1ca7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ COPY . /etc/kernel-builder/

ENV MAX_JOBS=${MAX_JOBS}
ENV CORES=${CORES}
ENTRYPOINT ["/bin/sh", "-c", "nix build --impure --max-jobs $MAX_JOBS -j $CORES --expr 'with import /etc/kernel-builder; lib.x86_64-linux.buildTorchExtensionBundle /kernelcode' -L"]
ENTRYPOINT ["/bin/sh", "-c", "\
nix build --impure --max-jobs $MAX_JOBS -j $CORES --expr 'with import /etc/kernel-builder; lib.x86_64-linux.buildTorchExtensionBundle /kernelcode' -L && \
rm -rf /kernelcode/result && mkdir -p /kernelcode/result && \
cp -r --dereference ./result/* /kernelcode/result/ && \
chmod -R 777 /kernelcode/result && \
echo 'Build completed. Results copied to /kernelcode/result/'\
"]

0 comments on commit a9b1ca7

Please sign in to comment.