Skip to content

Instantly share code, notes, and snippets.

@emeryao
Created September 23, 2022 11:36
Show Gist options
  • Save emeryao/9938761761757986a23f160dfc11dad5 to your computer and use it in GitHub Desktop.
Save emeryao/9938761761757986a23f160dfc11dad5 to your computer and use it in GitHub Desktop.
Build Docker image for Minecraft Bedrock Server
FROM ubuntu:latest AS build
WORKDIR /build
RUN apt update -qq && apt install --yes -qq unzip curl
RUN curl -fSsL https://minecraft.azureedge.net/bin-linux/bedrock-server-1.19.30.04.zip --output bedrock-server-1.19.30.04.zip
RUN unzip bedrock-server-1.19.30.04 -d ./bin/
FROM ubuntu:latest
RUN apt update -qq && apt install --yes -qq curl
WORKDIR /app
COPY --from=build /build/bin ./
EXPOSE 19132/udp
ENV LD_LIBRARY_PATH=.
CMD ["./bedrock_server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment