start dockerization

This commit is contained in:
2023-06-03 11:04:28 +02:00
parent bfb550e5a6
commit 8b1b64bd87
2 changed files with 18 additions and 0 deletions

10
Dockerfile Normal file
View File

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