mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-12 18:25:33 +02:00
improved Dockerfile
This commit is contained in:
parent
bafef3bff2
commit
c045b4d36d
1 changed files with 16 additions and 3 deletions
19
Dockerfile
19
Dockerfile
|
@ -13,7 +13,7 @@ RUN apt-get -y install python3-boto3
|
||||||
RUN apt-get -y install python3-tqdm
|
RUN apt-get -y install python3-tqdm
|
||||||
RUN apt-get -y install tmux
|
RUN apt-get -y install tmux
|
||||||
|
|
||||||
RUN git clone https://github.com/icwhite/mindcraft.git /mindcraft
|
RUN git clone https://github.com/kolbytn/mindcraft.git /mindcraft
|
||||||
WORKDIR /mindcraft
|
WORKDIR /mindcraft
|
||||||
COPY ./server_data.zip /mindcraft
|
COPY ./server_data.zip /mindcraft
|
||||||
RUN unzip server_data.zip
|
RUN unzip server_data.zip
|
||||||
|
@ -22,9 +22,22 @@ RUN npm install
|
||||||
|
|
||||||
|
|
||||||
# Copy the rest of the application code to the working directory
|
# Copy the rest of the application code to the working directory
|
||||||
|
# RUN apt update
|
||||||
|
# RUN apt install bash ca-certificates wget git -y # install first to avoid openjdk install bug
|
||||||
|
# RUN apt install openjdk-17-jre-headless -y
|
||||||
|
RUN apt install -y wget apt-transport-https gnupg lsb-release
|
||||||
|
|
||||||
|
# Add Adoptium repository key
|
||||||
|
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
|
||||||
|
|
||||||
|
# Add Adoptium repository
|
||||||
|
RUN echo "deb https://packages.adoptium.net/artifactory/deb $(lsb_release -cs) main" > /etc/apt/sources.list.d/adoptium.list
|
||||||
|
|
||||||
|
# Update package lists
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install bash ca-certificates wget git -y # install first to avoid openjdk install bug
|
|
||||||
RUN apt install openjdk-17-jre-headless -y
|
# Install Temurin (Adoptium) Java 21
|
||||||
|
RUN apt install temurin-21-jdk -y
|
||||||
|
|
||||||
# Install unzip
|
# Install unzip
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue