-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9c5cdc
commit e2a4815
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM docker.io/library/rust:1.78.0-bookworm AS builder | ||
|
||
WORKDIR /usr/local/src | ||
|
||
COPY . . | ||
|
||
RUN cargo build --release | ||
|
||
FROM gcr.io/distroless/cc-debian12:nonroot | ||
|
||
COPY --from=builder /usr/local/src/target/release/imdl /usr/local/bin/imdl | ||
|
||
ENTRYPOINT ["/usr/local/bin/imdl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,3 +134,7 @@ get-torrents: | |
# download bittorrent.org repository | ||
get-beps: | ||
git clone [email protected]:bittorrent/bittorrent.org.git tmp/bittorrent.org | ||
|
||
build-image: | ||
podman build -t imdl . | ||
podman run imdl |