| |
| FROM ubuntu:24.04 |
|
|
| |
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| openjdk-21-jre-headless \ |
| python3 python3-pip \ |
| wget curl jq \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN pip3 install --upgrade huggingface_hub flask mcrcon transformers requests --break-system-packages |
|
|
| WORKDIR /mcserver |
|
|
| |
| RUN wget -q -O playitd https://github.com/playit-cloud/playit-agent/releases/latest/download/playit-linux-amd64 \ |
| && chmod +x playitd |
|
|
| |
| RUN wget -q -O playit https://github.com/playit-cloud/playit-agent/releases/latest/download/playit-cli-linux-amd64 \ |
| && chmod +x playit |
| |
| RUN wget -q -O cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 \ |
| && chmod +x cloudflared |
|
|
| |
| COPY entrypoint.sh backup.py web_console.py ./ |
| RUN chmod +x entrypoint.sh |
|
|
| |
| EXPOSE 7860 |
|
|
| CMD ["./entrypoint.sh"] |