Added build & run docker scripts

This commit is contained in:
2023-05-07 12:08:41 +02:00
parent 02c0673e64
commit ab14ca65c5
5 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
FROM rust:1.61.0 as builder
# 2. Copy the files in your machine to the Docker image
COPY ./ ./
# Build your program for release
RUN cargo build --release
# Run the binary
CMD ["./target/release/test_weather_data"]