setup Dockerfile to run asm
This commit is contained in:
3 files changed
+26
No files matched your search
+11
@@ -0,0 +1,11 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y nasm gcc gdb vim
|
||||||
|
|
||||||
|
COPY main.asm /app/main.asm
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
RUN nasm -f elf64 main.asm -o main.o
|
||||||
|
RUN ld main.o -o main
|
||||||
|
|
||||||
|
CMD ["./main"]
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# Assembly Project Demonstration - Factorial with Recursion
|
||||||
|
Demonstrate how functoin calls work in assembly by using
|
||||||
|
a factorial recursion example.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t asm .
|
||||||
|
```
|
||||||
|
|
||||||
|
## Run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run asm
|
||||||
|
```
|
||||||
Reference in new issue
Block a user