Update Dockerfile
Browse files- Dockerfile +18 -10
Dockerfile
CHANGED
|
@@ -2,23 +2,27 @@ FROM debian:stable
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
-
# Install dependencies including
|
| 6 |
RUN apt-get update && \
|
| 7 |
-
apt-get install -y wget gnupg git python3 python3-pip python3-venv unzip && \
|
| 8 |
rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
-
# Install
|
| 11 |
-
RUN
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
# Add Amazon Corretto
|
| 14 |
RUN wget -O- https://apt.corretto.aws/corretto.key | gpg --dearmor > /usr/share/keyrings/corretto-archive-keyring.gpg && \
|
| 15 |
-
echo "deb [signed-by=/usr/share/keyrings/corretto-archive-keyring.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list
|
| 16 |
-
|
| 17 |
-
# Install OpenJDK 21
|
| 18 |
-
RUN apt-get update && \
|
| 19 |
apt-get install -y java-21-amazon-corretto-jdk && \
|
| 20 |
rm -rf /var/lib/apt/lists/*
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
# Set working directory
|
| 23 |
WORKDIR /app
|
| 24 |
|
|
@@ -26,7 +30,11 @@ WORKDIR /app
|
|
| 26 |
COPY . /app
|
| 27 |
|
| 28 |
# Set permissions
|
| 29 |
-
RUN chmod -R 777 /app
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# Set default command
|
| 32 |
CMD ["sh", "start.sh"]
|
|
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
+
# Install dependencies including procps for ps command
|
| 6 |
RUN apt-get update && \
|
| 7 |
+
apt-get install -y wget gnupg git python3 python3-pip python3-venv unzip curl procps && \
|
| 8 |
rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# Install Playit.gg using the exact commands you provided
|
| 11 |
+
RUN curl -SsL https://playit-cloud.github.io/ppa/key.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/playit.gpg >/dev/null && \
|
| 12 |
+
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 && \
|
| 13 |
+
apt-get update && \
|
| 14 |
+
apt-get install -y playit
|
| 15 |
|
| 16 |
+
# Add Amazon Corretto and install Java 21
|
| 17 |
RUN wget -O- https://apt.corretto.aws/corretto.key | gpg --dearmor > /usr/share/keyrings/corretto-archive-keyring.gpg && \
|
| 18 |
+
echo "deb [signed-by=/usr/share/keyrings/corretto-archive-keyring.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list && \
|
| 19 |
+
apt-get update && \
|
|
|
|
|
|
|
| 20 |
apt-get install -y java-21-amazon-corretto-jdk && \
|
| 21 |
rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
+
# Install Python packages
|
| 24 |
+
RUN pip3 install --no-cache-dir --break-system-packages gdown
|
| 25 |
+
|
| 26 |
# Set working directory
|
| 27 |
WORKDIR /app
|
| 28 |
|
|
|
|
| 30 |
COPY . /app
|
| 31 |
|
| 32 |
# Set permissions
|
| 33 |
+
RUN chmod -R 777 /app && \
|
| 34 |
+
chmod +x /app/start.sh
|
| 35 |
+
|
| 36 |
+
# Expose Minecraft port
|
| 37 |
+
EXPOSE 7860
|
| 38 |
|
| 39 |
# Set default command
|
| 40 |
CMD ["sh", "start.sh"]
|