Added docker stuff
This commit is contained in:
parent
0ec6159365
commit
33aa3d0ae7
3 changed files with 41 additions and 1 deletions
18
dockerfile
Normal file
18
dockerfile
Normal 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"]
|
||||
Loading…
Reference in a new issue