Add dockerfile (#533)

This commit is contained in:
Nuno 2024-05-17 06:47:47 +02:00 committed by GitHub
parent b9c5cdc0bc
commit e2a4815060
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

13
Dockerfile Normal file
View file

@ -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"]

View file

@ -134,3 +134,7 @@ get-torrents:
# download bittorrent.org repository
get-beps:
git clone git@github.com:bittorrent/bittorrent.org.git tmp/bittorrent.org
build-image:
podman build -t imdl .
podman run imdl