[skip-ci] Add the ability to be able to use different platforms with the example Dockerfile (#2723)

This commit is contained in:
Zorua162 2024-04-15 07:48:04 +01:00 committed by GitHub
parent 2fe376e7ca
commit 403284cc53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -5,6 +5,10 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0
# Then replace the <version> with a version of your choice (Example: MCC_VERSION=20220817-29)
#ENV MCC_VERSION=<version>
# IF you want to use a specific platform then specific the ENV MCC_PLATFORM
# For example to use arm set the environment variable: MCC_PLATFORM=linux-arm64
# `docker run -e MCC_PLATFORM=linux-arm64 -it localhost/minecraft-console-client`
# Copy over the script and give it execution permissions
COPY start-latest.sh /opt/start-latest.sh
RUN chmod +x /opt/start-latest.sh