Added build & run docker scripts
This commit is contained in:
9
microservices/weather/Dockerfile
Normal file
9
microservices/weather/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user