user-svc/Dockerfile

11 lines
256 B
Docker
Raw Normal View History

2022-07-13 04:07:19 +00:00
# 1. This tells docker to use the Rust official image
2022-07-08 18:45:10 +00:00
FROM rust:1.62
2022-07-13 04:07:19 +00:00
# 2. Copy the files in your machine to the Docker image
COPY ./ ./
2022-07-08 18:35:19 +00:00
2022-07-13 04:07:19 +00:00
# Build your program for release
2022-07-08 18:35:19 +00:00
RUN cargo build --release
2022-07-13 04:07:19 +00:00
# Run the binary
CMD ["./target/release/user-svc-actix"]