2022-11-28 14:10:55 +08:00
|
|
|
# Using the .NET official image for .NET 6.0
|
2022-08-19 21:22:54 +02:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0
|
2021-03-14 11:14:13 +01:00
|
|
|
|
2022-08-19 21:22:54 +02:00
|
|
|
# If you want to use a specific build, un-comment the ENV MCC_VERSION line (remove the # from the start)
|
|
|
|
|
# Then replace the <version> with a version of your choice (Example: MCC_VERSION=20220817-29)
|
|
|
|
|
#ENV MCC_VERSION=<version>
|
|
|
|
|
|
2024-04-15 07:48:04 +01:00
|
|
|
# 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`
|
|
|
|
|
|
2022-08-19 21:22:54 +02:00
|
|
|
# Copy over the script and give it execution permissions
|
2022-08-20 20:20:36 +02:00
|
|
|
COPY start-latest.sh /opt/start-latest.sh
|
|
|
|
|
RUN chmod +x /opt/start-latest.sh
|
2021-03-14 11:14:13 +01:00
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2022-08-19 21:22:54 +02:00
|
|
|
apt-get install -y unzip && \
|
|
|
|
|
mkdir /opt/data
|
2021-03-14 11:14:13 +01:00
|
|
|
|
2022-11-28 13:55:05 +08:00
|
|
|
ENTRYPOINT ["/bin/sh", "-c", "/opt/start-latest.sh"]
|