From cf6c74799d9ab138aa65503caf7f24f5bfbc0e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdulkadir=20Furkan=20=C5=9Eanl=C4=B1?= Date: Sat, 15 Jun 2024 08:28:22 +0200 Subject: [PATCH] Initial commit of Dockerfile. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Abdulkadir Furkan Şanlı --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..57e51ea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM rust:latest as builder + +RUN apt-get update && \ + apt-get install -y libsqlcipher-dev + +RUN git clone https://codeberg.org/darkrenaissance/darkfi.git /darkfi && \ + cd /darkfi && \ + make darkirc && \ + mkdir /darkirc && \ + mv darkirc /darkirc/darkirc && \ + /darkirc/darkirc || true && \ + mv ~/.config/darkfi/darkirc_config.toml /darkirc/config.toml + +FROM debian:latest + +RUN apt-get update && \ + apt-get install -y libsqlcipher-dev && \ + apt-get clean + +COPY --from=builder /darkirc /darkirc + +EXPOSE 6667 + +CMD ["/darkirc/darkirc", "--config", "/darkirc/config.toml"]