diff --git a/Dockerfile b/Dockerfile index bb4a32e..8875db4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM java:8 -#COPY /build/reso.jar +COPY ./temp/spring-server-generated/target/swagger-spring-1.0.0.jar reso.jar ENTRYPOINT ["java","-jar","reso.jar"] \ No newline at end of file diff --git a/build.sh b/build.sh index 169a51d..97153a3 100644 --- a/build.sh +++ b/build.sh @@ -1,3 +1,9 @@ #!/bin/bash -docker-compose build \ No newline at end of file +unzip temp/resources/spring-server-generated.zip -d temp/spring-server-generated + +mvn -f temp/spring-server-generated compile +mvn -f temp/spring-server-generated package + +docker-compose build +rm -rf temp/spring-server-generated diff --git a/run.sh b/run.sh index 51828fc..be1885e 100644 --- a/run.sh +++ b/run.sh @@ -1,3 +1,3 @@ #!/bin/bash -docker-compose up \ No newline at end of file +docker-compose up