minecraft_rust_reverse_proxy/Dockerfile

12 lines
279 B
Docker
Raw Permalink Normal View History

2023-06-03 11:04:28 +02:00
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 build --release
CMD /opt/mrproxy/target/release/minecraft_proxy