diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3aa50cb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,24 @@ +# ---> Rust +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb + +# ---> Nix +# Ignore build outputs from performing a nix-build or `nix build` command +result +result-* + +# Test gadget +test-gadget.py +.test-gadget/ + +# Added by cargo + +/target diff --git a/Dockerfile b/Dockerfile index 6f232af..752a879 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ RUN cargo install --path . FROM debian:stable-slim RUN apt-get update && apt-get install -y libc6 gcc && rm -rf /var/lib/apt/lists/* COPY --from=builder /usr/local/cargo/bin/compiler-course /usr/local/bin/compiler-course +COPY . . EXPOSE 3000 CMD ["compiler-course"]