#1 Add Dockerfile and adapt README

Fusionado
nicolas fusionadas 1 achegas de nicolas/docker en nicolas/master %!s(int64=3) %!d(string=hai) anos
Modificáronse 2 ficheiros con 21 adicións e 0 borrados
  1. 9 0
      Dockerfile
  2. 12 0
      README.md

+ 9 - 0
Dockerfile

@@ -0,0 +1,9 @@
+FROM rust:1.60
+
+WORKDIR /usr/src/zombie
+COPY . .
+
+RUN cargo install --path .
+
+ENTRYPOINT ["/usr/src/zombie/target/release/zombie"]
+CMD ["examples/hello_world.bf"]

+ 12 - 0
README.md

@@ -1,2 +1,14 @@
 # zombie
 Fast Brainfuck interpreter written in Rust
+
+# Docker
+
+```sh
+$ docker build -t zombie .
+
+# default is running examples/hello_world.bf
+$ docker run -it --rm zombie
+
+# run specific example
+$ docker run -it --rm zombie examples/mandel.bf
+```