Refactored tools services endpoints system and fixed json formatter. (#91)
Co-authored-by: Artur Kołecki <koleckiartur@icloud.com> Co-authored-by: Adam Bem <adam.bem@zoho.eu> Reviewed-on: R11/release11-tools-web#91
This commit is contained in:
		
							
								
								
									
										21
									
								
								Backend/tools-services/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								Backend/tools-services/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| # Using maven image, based on java 8 | ||||
| FROM maven:3.6.3-jdk-8 as target | ||||
| WORKDIR build | ||||
| COPY ./ ./ | ||||
| RUN mvn -ntp package | ||||
|  | ||||
|  | ||||
| # Go to working directory in docker image | ||||
| # WORKDIR /usr/app/ | ||||
|  | ||||
| FROM openjdk:slim-buster | ||||
| COPY --from=target /build/target/*jar-with-dependencies.jar /app/REST_XSLT.jar | ||||
|  | ||||
| # Download dependencies during image build | ||||
| # (RUN - works on image creation) | ||||
| # (CMD - works on container start) | ||||
| # RUN mvn dependency:resolve | ||||
| # RUN mvn dependency:go-offline | ||||
|  | ||||
| # On container creation - run maven tests | ||||
| CMD exec java -jar /app/REST_XSLT.jar | ||||
		Reference in New Issue
	
	Block a user