# syntax=docker/dockerfile:1 FROM maven:3.8-eclipse-temurin-17-alpine AS builder COPY . ./app WORKDIR /app RUN mvn package -B -DskipTests -DfinalName=server.jar FROM eclipse-temurin:17-jdk-jammy COPY --from=builder /app/target/server.jar . # Ensure the docker container uses the same timezone as the server ARG SERVER_TIMEZONE=Europe/Berlin ENV TZ=$SERVER_TIMEZONE ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y tzdata ENV SPRING_MAIL_HOST= ENV SPRING_MAIL_PORT=587 ENV SPRING_MAIL_USERNAME= ENV SPRING_MAIL_PASSWORD= ENV EMAIL_DASHBOARD_BASE_URL=http:// ENV EMAIL_VERIFICATION_URL=http:///api/2/auth/%s/verify.json ENV EMAIL_RESET_URL_PATH=/resetPassword CMD ["java", "-server", "-Xms1G", "-Xmx1G", "-XX:+UseZGC", "-jar", "server.jar"]