OBP-API/docker/Dockerfile
2025-07-15 16:40:32 +02:00

19 lines
402 B
Docker

FROM maven:3.9.6-eclipse-temurin-17
WORKDIR /app
# Copy all project files into container
COPY . .
EXPOSE 8080
# Build the project, skip tests to speed up
RUN mvn install -pl .,obp-commons -am -DskipTests
# Copy entrypoint script that runs mvn with needed JVM flags
COPY docker/entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Use script as entrypoint
CMD ["/app/entrypoint.sh"]