mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 10:11:34 +01:00 
			
		
		
		
	add boost, make boost work in docker, solve merge conflict
This commit is contained in:
		
							parent
							
								
									617257b7dc
								
							
						
					
					
						commit
						11319c5e0b
					
				
					 6 changed files with 101 additions and 83 deletions
				
			
		
							
								
								
									
										21
									
								
								standalone/Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								standalone/Dockerfile
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| # build | ||||
| FROM buildpack-deps:bullseye as webapp-build | ||||
| RUN set -eux; \ | ||||
|     apt-get update; \ | ||||
|     apt-get install -y --no-install-recommends \ | ||||
|     cmake \ | ||||
|     ninja-build \ | ||||
|     # build with Boost as system lib - this should be orders of magnitude faster to configure than | ||||
|     # downloading via CPM.cmake while Boost's CMake support is still experimental | ||||
|     libboost-all-dev \ | ||||
|     ; | ||||
| COPY . . | ||||
| RUN cmake -S standalone -B build -G Ninja -D CMAKE_BUILD_TYPE=Release | ||||
| RUN cmake --build build | ||||
| 
 | ||||
| 
 | ||||
| # deploy | ||||
| FROM debian:bullseye-slim as webapp-run | ||||
| WORKDIR /app | ||||
| COPY --from=webapp-build /build/GreeterStandalone . | ||||
| CMD ["./GreeterStandalone"] | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue