diff --git a/Dockerfile b/Dockerfile index 341b0a5..61152a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,14 @@ +FROM nathanosman/nasm as builder +ADD hang.asm /hang.asm +RUN nasm -f elf64 hang.asm +RUN ld -s -o hang hang.o + + FROM scratch MAINTAINER Nathan Osman # Add the binary to the container -ADD hang /hang +COPY --from=builder /hang /hang # Set it as the default entrypoint ENTRYPOINT ["/hang"]