HSG-MCS-HS21_tapas/tapas-tasks/Dockerfile
2021-11-28 18:20:36 +01:00

20 lines
543 B
Docker

FROM openjdk:11 AS development
WORKDIR /opt/app
ENV ROSTER_URI=http://roster:8082
ENV SPRING_DATA_MONGODB_URI=mongodb://root:password@tapas-db:27017
COPY .mvn/ .mvn
COPY mvnw pom.xml mvnw.cmd ./
RUN apt-get clean && apt-get update && apt-get install dos2unix
RUN dos2unix mvnw
COPY src /opt/app/src
COPY *target /opt/app/target
RUN ./mvnw clean install
CMD ["./mvnw", "spring-boot:run", "-Dspring-boot.run.jvmArguments=\"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005\"", "-Dspring.devtools.restart.enabled=true"]