Commit
+18 -0 +/-2 browse
1 | diff --git a/.containerignore b/.containerignore |
2 | new file mode 100644 |
3 | index 0000000..eb5a316 |
4 | --- /dev/null |
5 | +++ b/.containerignore |
6 | @@ -0,0 +1 @@ |
7 | + target |
8 | diff --git a/Containerfile b/Containerfile |
9 | new file mode 100644 |
10 | index 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 |