Update Dockerfile
Browse files- Dockerfile +13 -12
Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ FROM ubuntu:22.04
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
-
# Install
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
curl \
|
| 8 |
unzip \
|
|
@@ -12,20 +12,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 12 |
libssl3 \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
-
|
| 16 |
-
RUN curl -Lo /usr/local/bin/playit https://github.com/playit-cloud/playit-agent/releases/latest/download/playit-linux-amd64 \
|
| 17 |
-
&& chmod +x /usr/local/bin/playit
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
#
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
COPY start.sh /bedrock/start.sh
|
| 25 |
|
| 26 |
-
#
|
| 27 |
-
|
| 28 |
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
-
CMD ["/
|
|
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
+
# Install dependencies
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
curl \
|
| 8 |
unzip \
|
|
|
|
| 12 |
libssl3 \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
+
WORKDIR /app
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
# Download official Bedrock Server directly
|
| 18 |
+
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" \
|
| 19 |
+
&& unzip bedrock.zip -d /app \
|
| 20 |
+
&& rm bedrock.zip \
|
| 21 |
+
&& chmod +x /app/bedrock_server
|
| 22 |
|
| 23 |
+
# Download playit binary
|
| 24 |
+
RUN curl -Lo /usr/local/bin/playit https://github.com/playit-cloud/playit-agent/releases/latest/download/playit-linux-amd64 \
|
| 25 |
+
&& chmod +x /usr/local/bin/playit
|
|
|
|
| 26 |
|
| 27 |
+
# Copy clean app runner
|
| 28 |
+
COPY app.py /app/app.py
|
| 29 |
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
+
CMD ["python3", "/app/app.py"]
|