Initial commit of Dockerfile.
Signed-off-by: Abdulkadir Furkan Şanlı <me@abdulocra.cy>
This commit is contained in:
parent
06480407c5
commit
cf6c74799d
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -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"]
|
Loading…
Reference in New Issue
Block a user