From 12c28dba295335bb967a367ccf8e6a341386dd82 Mon Sep 17 00:00:00 2001 From: materus Date: Fri, 15 Mar 2024 15:49:23 +0100 Subject: [PATCH] Add Dockerfile --- .dockerignore | 1 + Dockerfile | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +/target diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1a393e9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM rust:1.76.0 + +WORKDIR /usr/src/currency-exchange + +COPY . . + +RUN cargo build -r + +ENTRYPOINT [ "./target/release/currency-exchange" ]