Added docker stuff

This commit is contained in:
Alois 2025-11-25 21:09:56 +01:00
commit 33aa3d0ae7
3 changed files with 41 additions and 1 deletions

18
dockerfile Normal file
View file

@ -0,0 +1,18 @@
# Build stage
FROM rust:latest AS builder
WORKDIR .
COPY . .
RUN cargo build --release
# Runtime stage
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /target/release/iota /usr/local/bin/
EXPOSE 1984
CMD ["iota"]