Create Dockerfile
Browse files- Dockerfile +34 -0
Dockerfile
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM debian:stable
|
| 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 |
+
# Add Amazon Corretto and install Java 21
|
| 11 |
+
RUN wget -O- https://apt.corretto.aws/corretto.key | gpg --dearmor > /usr/share/keyrings/corretto-archive-keyring.gpg && \
|
| 12 |
+
echo "deb [signed-by=/usr/share/keyrings/corretto-archive-keyring.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list && \
|
| 13 |
+
apt-get update && \
|
| 14 |
+
apt-get install -y java-21-amazon-corretto-jdk && \
|
| 15 |
+
rm -rf /var/lib/apt/lists/*
|
| 16 |
+
|
| 17 |
+
# Install Python packages
|
| 18 |
+
RUN pip3 install --no-cache-dir --break-system-packages gdown
|
| 19 |
+
|
| 20 |
+
# Set working directory
|
| 21 |
+
WORKDIR /app
|
| 22 |
+
|
| 23 |
+
# Copy application files
|
| 24 |
+
COPY . /app
|
| 25 |
+
|
| 26 |
+
# Set permissions
|
| 27 |
+
RUN chmod -R 777 /app && \
|
| 28 |
+
chmod +x /app/start.sh
|
| 29 |
+
|
| 30 |
+
# Expose Minecraft port
|
| 31 |
+
EXPOSE 7860
|
| 32 |
+
|
| 33 |
+
# Set default command
|
| 34 |
+
CMD ["sh", "start.sh"]
|