Skip to content

Commit e2a4815

Browse files
authored
Add dockerfile (#533)
1 parent b9c5cdc commit e2a4815

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM docker.io/library/rust:1.78.0-bookworm AS builder
2+
3+
WORKDIR /usr/local/src
4+
5+
COPY . .
6+
7+
RUN cargo build --release
8+
9+
FROM gcr.io/distroless/cc-debian12:nonroot
10+
11+
COPY --from=builder /usr/local/src/target/release/imdl /usr/local/bin/imdl
12+
13+
ENTRYPOINT ["/usr/local/bin/imdl"]

justfile

+4
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,7 @@ get-torrents:
134134
# download bittorrent.org repository
135135
get-beps:
136136
git clone [email protected]:bittorrent/bittorrent.org.git tmp/bittorrent.org
137+
138+
build-image:
139+
podman build -t imdl .
140+
podman run imdl

0 commit comments

Comments
 (0)