Adding docker scripts for building with Rust in docker
This commit is contained in:
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM rust:1.80
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
RUN apt update
|
||||||
|
RUN apt install -y lsof
|
||||||
|
|
1
bin/cargo.sh
Symbolic link
1
bin/cargo.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
docker-cargo.sh
|
4
bin/docker-cargo.sh
Executable file
4
bin/docker-cargo.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker run --rm -v $(pwd):/src --name zealot zealot cargo $@
|
||||||
|
|
4
bin/docker-image.sh
Executable file
4
bin/docker-image.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker build -t zealot .
|
||||||
|
|
Reference in New Issue
Block a user