Explorar el Código

fix: 修改Dockerfile

181250114 hace 4 años
padre
commit
73c614bbfc
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -11,6 +11,7 @@ ENV PROJECT_NAME app
 ENV WORK_PATH /opt/$PROJECT_NAME
 WORKDIR /app
 COPY --from=compile_stage $WORK_PATH/target/data-analysis-0.0.1-SNAPSHOT.jar .
-RUN echo "10.42.3.63 environment-40-147-657967b446-fcz7n" >> /etc/hosts
+#RUN echo "10.42.3.63 environment-40-147-657967b446-fcz7n" >> /etc/hosts
+RUN echo "10.42.2.20 environment-40-147-657967b446-457fq" >> /etc/hosts
 CMD ["sh", "-c", "java -Xdebug -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n -jar -server /app/data-analysis-0.0.1-SNAPSHOT.jar"]
 #CMD nohup sh -c 'java -Xdebug -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n -jar -server /app/data-analysis-0.0.1-SNAPSHOT.jar && echo \'10.42.3.63 environment-40-147-657967b446-fcz7n\' >> /etc/hosts'