minecraft-helper/Dockerfile

24 lines
636 B
Docker
Raw Normal View History

2024-06-27 18:00:21 +00:00
FROM maven:3.9.8-eclipse-temurin-17-alpine
2024-04-20 20:31:02 +01:00
2024-04-20 21:01:18 +01:00
RUN apk --update --upgrade --no-cache add fontconfig ttf-freefont font-noto terminus-font \
&& fc-cache -f \
&& fc-list | sort
2024-04-20 20:38:05 +01:00
2024-04-08 05:03:41 +01:00
# Set the working directory
2024-04-08 07:30:02 +01:00
WORKDIR /home/container
2024-04-08 05:03:41 +01:00
# Copy the current directory contents into the container at /home/container
2024-04-06 06:07:01 +01:00
COPY . .
2024-04-08 05:03:41 +01:00
# Build the jar
2024-04-14 17:13:12 +01:00
RUN mvn package -q -Dmaven.test.skip -DskipTests -T2C
2024-04-06 05:55:48 +01:00
2024-04-08 05:03:41 +01:00
# Make port 80 available to the world outside this container
2024-04-06 06:21:30 +01:00
EXPOSE 80
ENV PORT=80
2024-04-06 06:06:19 +01:00
2024-04-11 03:08:17 +01:00
# Indicate that we're running in production
ENV ENVIRONMENT=production
2024-04-08 05:03:41 +01:00
# Run the jar file
2024-04-20 20:26:31 +01:00
CMD java -jar target/Minecraft-Utilities.jar -Djava.awt.headless=true