From 35f99f5e0ed90d30b902158763f1c2fb6db86517 Mon Sep 17 00:00:00 2001 From: hgw Date: Wed, 4 Oct 2023 12:15:57 +0000 Subject: [PATCH] Add docker support --- .dockerignore | 2 ++ Dockerfile | 7 +++++++ docker-compose.yml | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..902f49a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +irc_config.yaml +/ircie \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..35eb18e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM rust:bookworm +WORKDIR /app +RUN mkdir save +RUN git clone https://github.com/ayywrk/ircie +COPY . . +RUN cargo build --release +CMD ["./target/release/hardfight"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7fcc9f2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +services: + hardfight: + build: . + volumes: + - "$PWD/irc_config.yaml:/app/irc_config.yaml" + - "$PWD/save:/app/save" \ No newline at end of file