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