From 8b1b64bd87cccd18b825f67f091050b18ea612be Mon Sep 17 00:00:00 2001 From: groche97 Date: Sat, 3 Jun 2023 11:04:28 +0200 Subject: [PATCH] start dockerization --- Dockerfile | 10 ++++++++++ config/mrprox.conf | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 Dockerfile create mode 100644 config/mrprox.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ac9c72b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine:latest +EXPOSE 25565 25564 +RUN mkdir /opt/mrproxy +RUN mkdir /etc/mrproxy +COPY Cargo.toml /opt/mrproxy +COPY src /opt/mrproxy/src +COPY config/* /etc/mrproxy +WORKDIR /opt/mrproxy +RUN apk add cargo +RUN cargo run --release diff --git a/config/mrprox.conf b/config/mrprox.conf new file mode 100644 index 0000000..6ea4521 --- /dev/null +++ b/config/mrprox.conf @@ -0,0 +1,8 @@ +ip: '0.0.0.0' +port: '25565' +conf: + #Can be TCP or UNIX + sock_type: 'TCP' + #path: '/home/roche/portmrproxy' + port: '25564' + ip: '127.0.0.1'