We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e119c7 commit ce8a1abCopy full SHA for ce8a1ab
Dockerfile
@@ -1,11 +1,18 @@
1
-FROM rust:1.50 as builder
2
-WORKDIR /usr/src/d4format
3
-COPY . .
+###########
+# BUILDER #
4
5
-RUN cargo build --release
+FROM rust:latest AS builder
6
7
-FROM debian:buster-slim
8
-RUN rm -rf /var/lib/apt/lists/*
9
-COPY --from=builder /usr/src/d4format/target/release/d4tools /usr/local/bin/d4tools
+RUN cargo install --git https://github.com/38/d4-format.git d4tools --branch master
+
+#########
10
+# FINAL #
11
12
13
+FROM debian:bookworm-slim
14
15
+# Import lib from builder
16
+COPY --from=builder /usr/local/cargo/bin/d4tools /usr/local/bin/d4tools
17
18
CMD ["d4tools"]
0 commit comments