Владимир Томишинец hace 5 años
padre
commit
49bbf253a6
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      Dockerfile

+ 1 - 2
Dockerfile

@@ -19,7 +19,6 @@ RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm \
     && rm -rf /root/.ssh/id_rsa
 
 FROM registry.sdsys.ru/iru/iru-base:7.6
-EXPOSE 9005
-HEALTHCHECK --start-period=30s --interval=15s --timeout=5s --retries=2 CMD curl -f 127.0.0.1:9005 || exit 1
+HEALTHCHECK --start-period=30s --interval=15s --timeout=5s --retries=2 CMD curl -f 127.0.0.1:${SERVER_PORT} || exit 1
 COPY --from=build /web-registration-cloud/promo/build/libs/promo-0.0.1-SNAPSHOT.war /opt/
 CMD ["java", "-jar", "/opt/promo-0.0.1-SNAPSHOT.war"]