Add Dockerfile to create images
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Dockerfile
|
||||||
|
target/*
|
||||||
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
FROM rust:1.74-bookworm
|
||||||
|
|
||||||
|
COPY . /opt/app
|
||||||
|
|
||||||
|
WORKDIR /opt/app
|
||||||
|
|
||||||
|
RUN apt update && apt install -y cmake
|
||||||
|
|
||||||
|
RUN cargo build --release
|
||||||
|
|
||||||
|
ENTRYPOINT ["/opt/app/target/release/disconic"]
|
||||||
|
|
||||||
|
CMD ["--help"]
|
||||||
Reference in New Issue
Block a user