Create Dockerfile

This commit is contained in:
2025-08-15 03:32:34 -03:00
parent ac81e3b286
commit 700b770248
2 changed files with 19 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM rust:latest AS builder
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY . .
RUN cargo build --release
FROM debian:bookworm
COPY --from=builder /app/target/release/payphone /usr/local/bin/payphone
ENTRYPOINT [ "payphone" ]
CMD [ "start" ]