Aktualizovat Dockerfile
All checks were successful
Build Minecraft Stats Ownercz Image / Build-Minecraft-Stats-Image (push) Successful in 1m31s

This commit is contained in:
Radim Lipovčan 2024-03-12 17:45:12 +01:00
parent a9a3b6cda4
commit e483d6d89c

View File

@ -5,6 +5,7 @@ echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corre
RUN apt-get update; apt-get install -y java-17-amazon-corretto-jdk
COPY MinecraftStatsCLI.zip /source/MinecraftStatsCLI.zip
COPY MinecraftStatsWeb.zip /source/MinecraftStatsWeb.zip
COPY nginx.conf /opt/nginx.conf
RUN unzip /source/MinecraftStatsCLI.zip -d /opt/mcstatscli/
RUN unzip /source/MinecraftStatsWeb.zip -d /opt/mcstatsweb/
CMD ["nginx", "-c","/opt/nginx.conf","-g", "daemon off;", "java","-jar","/opt/mcstatscli/MinecraftStatsCLI.jar"]