Skip to content

Commit

Permalink
Add dockerfile (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
rare-magma authored May 17, 2024
1 parent b9c5cdc commit e2a4815
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
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"]
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e2a4815

Please sign in to comment.