Skip to content

Commit

Permalink
Use Docker to build
Browse files Browse the repository at this point in the history
Workaround to libc version mismatching
  • Loading branch information
the-rectifier committed Dec 18, 2021
1 parent e10b658 commit d19e361
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM rust:bullseye

RUN apt update
RUN apt install -y pkg-config libudev-dev mingw-w64

RUN rustup target add x86_64-pc-windows-gnu
RUN cargo install cargo-make

WORKDIR /root
RUN mkdir build

WORKDIR /root/build

ENTRYPOINT [ "cargo", "make", "sudoku" ]
3 changes: 3 additions & 0 deletions build_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/bash

docker build -t canopus/rust_builder . && docker run --rm -v $(pwd):/root/build --name rusty canopus/rust_builder

0 comments on commit d19e361

Please sign in to comment.