Skip to content

Commit

Permalink
🧱 Modify Dockerfile for rust application (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamadamson authored Nov 23, 2023
1 parent d356866 commit 2ce0b88
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
FROM alpine
CMD ["/bin/sh", "-c", "echo 'It works!'"]
FROM rust:1.67 as builder
WORKDIR /usr/src/myapp
COPY . .
RUN cargo install --path .

FROM debian:bullseye-slim
COPY --from=builder /usr/local/cargo/bin/room-monitor /usr/local/bin/room-monitor
CMD ["room-monitor"]

0 comments on commit 2ce0b88

Please sign in to comment.