Skip to content

Commit ce8a1ab

Browse files
northwestwitchChiara Rasi
andauthored
Fix Dockerfile (#85)
Co-authored-by: Chiara Rasi <[email protected]>
1 parent 5e119c7 commit ce8a1ab

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

Dockerfile

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
FROM rust:1.50 as builder
2-
WORKDIR /usr/src/d4format
3-
COPY . .
1+
###########
2+
# BUILDER #
3+
###########
44

5-
RUN cargo build --release
5+
FROM rust:latest AS builder
66

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
7+
RUN cargo install --git https://github.com/38/d4-format.git d4tools --branch master
8+
9+
#########
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
1017

1118
CMD ["d4tools"]

0 commit comments

Comments
 (0)