mirror of
				https://github.com/simon987/sist2.git
				synced 2025-10-31 16:06:53 +00:00 
			
		
		
		
	Update dockerfiles
This commit is contained in:
		
							parent
							
								
									08b2ca9d43
								
							
						
					
					
						commit
						48d024e751
					
				
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							| @ -6,12 +6,10 @@ COPY . . | ||||
| RUN cmake -DSIST_PLATFORM=x64_linux -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake . | ||||
| RUN make -j$(nproc) | ||||
| RUN strip sist2 | ||||
| RUN ls -lh | ||||
| RUN ls -lh sist2-vue/dist/ | ||||
| 
 | ||||
| FROM ubuntu:20.10 | ||||
| FROM ubuntu:21.10 | ||||
| 
 | ||||
| RUN apt update && apt install -y curl libasan5 | ||||
| RUN apt update && apt install -y curl libasan5 && rm -rf /var/lib/apt/lists/* | ||||
| 
 | ||||
| RUN mkdir -p /usr/share/tessdata && \ | ||||
|     cd /usr/share/tessdata/ && \ | ||||
| @ -22,9 +20,9 @@ RUN mkdir -p /usr/share/tessdata && \ | ||||
|     curl -o /usr/share/tessdata/rus.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/rus.traineddata &&\ | ||||
|     curl -o /usr/share/tessdata/spa.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/spa.traineddata | ||||
| 
 | ||||
| COPY --from=build /build/sist2 /root/sist2 | ||||
| ENTRYPOINT ["/root/sist2"] | ||||
| 
 | ||||
| ENV LANG C.UTF-8 | ||||
| ENV LC_ALL C.UTF-8 | ||||
| 
 | ||||
| ENTRYPOINT ["/root/sist2"] | ||||
| COPY --from=build /build/sist2 /root/sist2 | ||||
|  | ||||
| @ -7,9 +7,9 @@ RUN cmake -DSIST_PLATFORM=arm64_linux -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE | ||||
| RUN make -j$(nproc) | ||||
| RUN strip sist2 | ||||
| 
 | ||||
| FROM ubuntu:20.10 | ||||
| FROM --platform linux/arm64/v8 ubuntu:21.10 | ||||
| 
 | ||||
| RUN apt update && apt install -y curl libasan5 | ||||
| RUN apt update && apt install -y curl libasan5 && rm -rf /var/lib/apt/lists/* | ||||
| 
 | ||||
| RUN mkdir -p /usr/share/tessdata && \ | ||||
|     cd /usr/share/tessdata/ && \ | ||||
| @ -20,9 +20,9 @@ RUN mkdir -p /usr/share/tessdata && \ | ||||
|     curl -o /usr/share/tessdata/rus.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/rus.traineddata &&\ | ||||
|     curl -o /usr/share/tessdata/spa.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/spa.traineddata | ||||
| 
 | ||||
| COPY --from=build /build/sist2 /root/sist2 | ||||
| 
 | ||||
| ENV LANG C.UTF-8 | ||||
| ENV LC_ALL C.UTF-8 | ||||
| 
 | ||||
| ENTRYPOINT ["/root/sist2"] | ||||
| ENTRYPOINT ["/root/sist2"] | ||||
| 
 | ||||
| COPY --from=build /build/sist2 /root/sist2 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user