Commit
Author: Kevin Schoon [me@kevinschoon.com]
Hash: 8887a879874c59b8d897d497cfadfa95063e1b46
Timestamp: Tue, 10 Sep 2024 11:59:37 +0000 (3 months ago)

+18 -0 +/-2 browse
add a basic containerfile for maitred-debug
1diff --git a/.containerignore b/.containerignore
2new file mode 100644
3index 0000000..eb5a316
4--- /dev/null
5+++ b/.containerignore
6 @@ -0,0 +1 @@
7+ target
8 diff --git a/Containerfile b/Containerfile
9new file mode 100644
10index 0000000..6388596
11--- /dev/null
12+++ b/Containerfile
13 @@ -0,0 +1,17 @@
14+ FROM alpine:3 AS build
15+
16+ RUN apk add cargo rust
17+
18+ WORKDIR /src
19+
20+ COPY . /src
21+
22+ RUN cargo test && cargo build --release
23+
24+ FROM alpine:3
25+
26+ RUN apk add libgcc
27+
28+ COPY --from=build /src/target/release/maitred-debug /usr/bin/
29+
30+ CMD /usr/bin/maitred-debug