From ac4223f89b8672eec73eddaea6759c78ea4bbab7 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 8 Oct 2024 19:24:33 +0200 Subject: [PATCH] expose docker container port --- Dockerfile | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 20e2faaa5..f1fb3ddd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,5 @@ FROM alpine:3.20 WORKDIR /pumpkin RUN apk add --no-cache libgcc COPY --from=builder /pumpkin/target/release/pumpkin /pumpkin/pumpkin +EXPOSE 25565 ENTRYPOINT ["/pumpkin/pumpkin"] diff --git a/README.md b/README.md index e45ccd31e..e6d4be5d5 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ docker build . -t pumpkin To run it use the following command: ```shell -docker run --rm -v "./world:/pumpkin/world" pumpkin +docker run --rm -p 25565:25565 -v "./world:/pumpkin/world" pumpkin ``` ## Contributions