Created
September 23, 2022 11:36
-
-
Save emeryao/9938761761757986a23f160dfc11dad5 to your computer and use it in GitHub Desktop.
Build Docker image for Minecraft Bedrock Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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