File size: 1,416 Bytes
d7df88d
 
 
 
1f31ae6
d7df88d
1f31ae6
d7df88d
 
1f31ae6
 
 
 
 
d7df88d
1f31ae6
d7df88d
1f31ae6
 
d7df88d
 
 
1f31ae6
 
 
d7df88d
 
 
 
 
 
 
1f31ae6
 
 
 
 
d7df88d
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM debian:stable

ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies including procps for ps command
RUN apt-get update && \
    apt-get install -y wget gnupg git python3 python3-pip python3-venv unzip curl procps && \
    rm -rf /var/lib/apt/lists/*

# Install Playit.gg using the exact commands you provided
RUN curl -SsL https://playit-cloud.github.io/ppa/key.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/playit.gpg >/dev/null && \
    echo "deb [signed-by=/etc/apt/trusted.gpg.d/playit.gpg] https://playit-cloud.github.io/ppa/data ./" | tee /etc/apt/sources.list.d/playit-cloud.list && \
    apt-get update && \
    apt-get install -y playit

# Add Amazon Corretto and install Java 21
RUN wget -O- https://apt.corretto.aws/corretto.key | gpg --dearmor > /usr/share/keyrings/corretto-archive-keyring.gpg && \
    echo "deb [signed-by=/usr/share/keyrings/corretto-archive-keyring.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list && \
    apt-get update && \
    apt-get install -y java-21-amazon-corretto-jdk && \
    rm -rf /var/lib/apt/lists/*

# Install Python packages
RUN pip3 install --no-cache-dir --break-system-packages gdown

# Set working directory
WORKDIR /app

# Copy application files
COPY . /app

# Set permissions
RUN chmod -R 777 /app && \
    chmod +x /app/start.sh

# Expose Minecraft port
EXPOSE 7860

# Set default command
CMD ["sh", "start.sh"]