Spaces:
Running

File size: 628 Bytes
0bf2d99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM eclipse-temurin:21-jdk

USER root

RUN apt-get update && apt-get install -y --no-install-recommends \
    python3 tini wget ca-certificates openssl zstd && \
    rm -rf /var/lib/apt/lists/*

RUN wget -qO /usr/local/bin/playit \
    https://github.com/playit-cloud/playit-agent/releases/download/v1.0.10/playit-linux-amd64 && \
    chmod +x /usr/local/bin/playit

RUN mkdir -p /opt/mc/server /data

COPY entrypoint sync assemble /opt/mc/
RUN chmod +x /opt/mc/entrypoint /opt/mc/sync /opt/mc/assemble

ENV SERVER_DIR=/opt/mc/server \
    BUCKET_DIR=/data

EXPOSE 7860 7681/udp
ENTRYPOINT ["tini", "--", "/opt/mc/entrypoint"]