Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.1 kB · 19 lines
1234567891011121314151617181920ARG TARGETARCHFROM --platform=linux/$TARGETARCH ubuntu:24.04RUN apt update && apt install -y curlARG STREAMPLACE_URLENV STREAMPLACE_URL $STREAMPLACE_URL# strip the -cloudflare suffix from the url; we're on the git server we don't need to leaveRUN export LOCAL_URL="$(echo $STREAMPLACE_URL | sed 's/-cloudflare//')" && echo "downloading $LOCAL_URL" && cd /usr/local/bin && curl -L "$LOCAL_URL" | tar xzv
RUN apt-get update && apt-get install -y curl# Download to a file with retries, then extract (see mistserver.ghcr.Dockerfile):# piping curl into tar corrupts extraction on a truncated transfer, and# r.mistserver.org hiccups intermittently.RUN cd /usr/bin && \ curl -fL --retry 12 --retry-all-errors --retry-delay 10 --retry-max-time 240 -o /tmp/mistserver.tar.gz https://storage.googleapis.com/streamplace-crap/6619b22c-7744-4be4-9de8-cdbf22ce5906/MistServer.tar.gz && \ tar xzvf /tmp/mistserver.tar.gz && \ rm /tmp/mistserver.tar.gzRUN mkdir -p /configADD ./docker/mistserver.json /config/mistserver.jsonCMD ["MistController", "-c", "/config/mistserver.json"]