diff --git a/Dockerfile b/Dockerfile index 82050815..9423f060 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,17 @@ FROM openjdk:8-jre VOLUME ["/hygieia/logs"] -RUN mkdir /hygieia/config +RUN mkdir -p /hygieia/config EXPOSE 8080 ENV PROP_FILE /hygieia/config/application.properties +ENV PROJ_JAR api.jar WORKDIR /hygieia -COPY target/*.jar /hygieia/ +COPY target/api.jar /hygieia/ COPY docker/properties-builder.sh /hygieia/ CMD ./properties-builder.sh &&\ - java -Djava.security.egd=file:/dev/./urandom -jar *.jar --spring.config.location=$PROP_FILE \ No newline at end of file + java -Djava.security.egd=file:/dev/./urandom -jar $PROJ_JAR --spring.config.location=$PROP_FILE