Add docker support

This commit is contained in:
hgw 2023-10-04 12:15:57 +00:00
parent 14b171b1c3
commit 35f99f5e0e
Signed by: hgw
SSH Key Fingerprint: SHA256:diG7RVYHjd3aDYkZWHYcBJbImu+6zfptuUP+3k/wol4
3 changed files with 15 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
irc_config.yaml
/ircie

7
Dockerfile Normal file
View File

@ -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"]

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
services:
hardfight:
build: .
volumes:
- "$PWD/irc_config.yaml:/app/irc_config.yaml"
- "$PWD/save:/app/save"