This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
MCDashWrapper/Dockerfile

22 lines
439 B
Docker

FROM maven:3.8.7-openjdk-18-slim AS build
WORKDIR /app
RUN apt-get update && \
apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
COPY pom.xml .
COPY src ./src
COPY webui ./webui
RUN mvn compile assembly:single
FROM openjdk:18-slim
WORKDIR /app
COPY --from=build /app/target/MCDash-Wrapper.jar ./server.jar
EXPOSE 7865
CMD ["java", "-jar", "server.jar"]