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 alpine:latest | |
| RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ | |
| && apk add --update openjdk8-jre-base && rm -rf /var/cache/apk/* | |
| RUN apk add curl jq | |
| RUN mkdir /mc | |
| RUN wget -q $(curl -s $(curl -s https://launchermeta.mojang.com/mc/game/version_manifest.json | jq -r ".versions[] | select(.id == $(curl -s https://launchermeta.mojang.com/mc/game/version_manifest.json | jq .latest.snapshot)) .url") | jq -r .downloads.server.url) -O /mc/server.jar | |
| CMD ["/usr/bin/java","-Xmx1024M","-Xms1024M","-jar","/mc/server.jar","nogui"] |
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
| <# | |
| Fresh Windows bootstrap script | |
| - Enables WSL, Virtual Machine Platform, optional Windows Sandbox | |
| - Installs chosen applications with winget (idempotent) | |
| - Optional sets: mobile / gaming | |
| - Privacy tweaks (optional), logging, reboot detection | |
| - Re-runnable: skips already enabled features & installed packages | |
| Execution Policy / First Run: |