HSG-MCS-HS21_tapas/executor-pool/Dockerfile

21 lines
581 B
Docker
Raw Permalink Normal View History

2021-10-06 08:23:57 +00:00
FROM openjdk:11 AS development
WORKDIR /opt/app
2021-11-28 17:20:36 +00:00
ENV ROSTER_URI=http://roster:8082
ENV SPRING_DATA_MONGODB_URI=mongodb://root:password@tapas-db:27017
ENV MQTT_BROKER_URI=tcp://hivemq:1883
2021-10-06 08:23:57 +00:00
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
2021-11-28 17:20:36 +00:00
RUN ./mvnw clean install
2021-10-06 08:23:57 +00:00
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"]