From cd39dfd0ac59ea6583fe14d23d57a5c9e6172f54 Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Tue, 10 Jan 2023 15:14:17 -0500 Subject: [PATCH] Add Docker config --- .dockerignore | 2 ++ Cargo.toml | 4 ++-- Dockerfile | 8 ++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ce19170 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.idea +README.md diff --git a/Cargo.toml b/Cargo.toml index 3f82269..a2dcf56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "echbot" -version = "0.1.1" -edition = "2023" +version = "0.1.0" +edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1668093 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM rust:1.66.0 + +WORKDIR /usr/src/echbot +COPY . . + +RUN cargo install --path . + +cmd "echbot"