world / Dockerfile
misukisu's picture
Update Dockerfile
cb8b795 verified
Raw
History Blame Contribute Delete
852 Bytes
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
unzip \
ca-certificates \
python3 \
libcurl4 \
libssl3 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Download official Bedrock Server directly
RUN curl -H "User-Agent: Mozilla/5.0" -Lo bedrock.zip "https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.60.10.zip" \
&& unzip bedrock.zip -d /app \
&& rm bedrock.zip \
&& chmod +x /app/bedrock_server
# Download playit binary
RUN curl -Lo /usr/local/bin/playit https://github.com/playit-cloud/playit-agent/releases/latest/download/playit-linux-amd64 \
&& chmod +x /usr/local/bin/playit
# Copy clean app runner
COPY app.py /app/app.py
EXPOSE 7860
CMD ["python3", "/app/app.py"]