Create Dockerfile
This commit is contained in:
+16
@@ -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" ]
|
||||
Reference in New Issue
Block a user