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 ENV MQTT_BROKER_URI=tcp://hivemq:1883 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"]